All Projects → yayaa → Parallaxrecyclerview

yayaa / Parallaxrecyclerview

Parallax effect on every item of your RecyclerView.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Parallaxrecyclerview

Rvparallaximageview
RvParallaxImageView用在recyclerview的item中,它可以随着recyclerview进行视差效果的移动,进而可以在一个小区域的item中展示一个完整的图片。适用于在recyclerview的item中显示大的广告图。
Stars: ✭ 224 (-5.49%)
Mutual labels:  recyclerview, parallax, imageview
Image-Support
Add badge with counter to ImageView Android.
Stars: ✭ 128 (-45.99%)
Mutual labels:  imageview, custom-view
Android-Code-Demos
📦 Android learning code demos.
Stars: ✭ 41 (-82.7%)
Mutual labels:  recyclerview, custom-view
Imageviewer
🔮图片浏览器,支持图片手势缩放、拖拽等操作,`自定义View`的模式显示,自定义图片加载方式,更加灵活,易于扩展,同时也适用于RecyclerView、ListView的横向和纵向列表模式,最低支持版本为Android 3.0及以上...
Stars: ✭ 363 (+53.16%)
Mutual labels:  recyclerview, imageview
android-tableview-kotlin
Android's missing TableView component.
Stars: ✭ 40 (-83.12%)
Mutual labels:  recyclerview, custom-view
ProgressableImageView
Change your users progress capability with ProgressableImageView
Stars: ✭ 86 (-63.71%)
Mutual labels:  imageview, custom-view
Tableview
TableView is a powerful Android library for displaying complex data structures and rendering tabular data composed of rows, columns and cells.
Stars: ✭ 2,928 (+1135.44%)
Mutual labels:  custom-view, recyclerview
android-thinkmap-treeview
Tree View; Mind map; Think map; tree map; custom view; 自定义;关系图;树状图;思维导图;组织机构图;层次图
Stars: ✭ 314 (+32.49%)
Mutual labels:  recyclerview, custom-view
Codeview Android
Display code with syntax highlighting ✨ in native way.
Stars: ✭ 748 (+215.61%)
Mutual labels:  custom-view, recyclerview
Windowimageview
An ImageView display in RecyclerView, looks like window.
Stars: ✭ 699 (+194.94%)
Mutual labels:  recyclerview, imageview
Xrecyclerview
A RecyclerView that implements pullrefresh and loadingmore featrues.you can use it like a standard RecyclerView
Stars: ✭ 5,269 (+2123.21%)
Mutual labels:  custom-view, recyclerview
Reel Search Android
Reel Search for Android is a UI/UX design for autocomplete action. It is a beautiful minimalistic addition to any use case.
Stars: ✭ 110 (-53.59%)
Mutual labels:  custom-view, recyclerview
Android Circular Progress
Android custom view that loads a circular progress indicator using ImageView or FrameLayout
Stars: ✭ 75 (-68.35%)
Mutual labels:  custom-view, imageview
Kotlin Playground
Kotlin practice
Stars: ✭ 111 (-53.16%)
Mutual labels:  recyclerview, imageview
Async Expandable List
Stars: ✭ 221 (-6.75%)
Mutual labels:  recyclerview
Dsladapter
🔥 Kotlin时代的Adapter, Dsl 的形式使用 RecyclerView.Adapter, 支持折叠展开, 树结构,悬停,情感图状态切换, 加载更多, 多类型Item,侧滑菜单等
Stars: ✭ 231 (-2.53%)
Mutual labels:  recyclerview
Animatedrecyclerview
RecyclerView with layout animations
Stars: ✭ 220 (-7.17%)
Mutual labels:  recyclerview
Superxml
android布局能力增加,轻松实现圆角、边框、虚线、属性覆盖等功能。完全无侵入
Stars: ✭ 221 (-6.75%)
Mutual labels:  imageview
Recyclerviewhelper
RecyclerView功能拓展
Stars: ✭ 235 (-0.84%)
Mutual labels:  recyclerview
Overscroll Decor
Android: iOS-like over-scrolling effect applicable over almost all scrollable Android views.
Stars: ✭ 2,671 (+1027%)
Mutual labels:  recyclerview

ParallaxRecyclerView

This library will provide you to have Parallax effect on every item of your RecyclerView. Sample shows with static images but it can be used with async loading images as well. Tested with Picasso

Compatibility

This library works on 2.2+ probably earlier as well, but i didn't even bother to test because i believe at some point we have to stop supporting every version ;)

Usage

Get your ParallaxRecyclerView instance, and set its adapter as shown in sample. You need to provide a ParallaxImageView, which will handle parallax effect, on your recyclerView's item.

In your adapter create a ViewHolder which extends ParallaxViewHolder. This will make you implement below method that you need to return your ParallaxImageView's id on item.

@Override
public int getParallaxImageId() {
    return R.id.backgroundImage;
}

And this method needs to be called onBindViewHolder method to notify ParallaxImageView that will be displayed once again, so it will re-center itselfs.

viewHolder.getBackgroundImage().reuse();

If you wish to change Parallax effects ratio, you can simple call setParallaxRatio on code, or you can set it by xml with parallax_ratio attribute.

Download

Add library dependency to your build.gradle file:

Maven Central

dependencies {    
     compile 'com.yayandroid:ParallaxRecyclerView:1.1'
}

References

This library has been built by our designer's insistence. She's seen JBParallaxCell library on IOS and want it to have in Android as well. Researches lead me to this repository but it wasn't quite affective as it is on IOS, so here ParallaxRecyclerView.

License

The MIT License (MIT)

Copyright (c) 2015 yayandroid

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].