All Projects → tomoima525 → Circulerautoscrollingrecyclerview

tomoima525 / Circulerautoscrollingrecyclerview

Sample code of infinite rotation using RecyclerView. Built with Kotlin

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Circulerautoscrollingrecyclerview

Androidproject
Android 技术中台,但愿人长久,搬砖不再有
Stars: ✭ 4,398 (+9062.5%)
Mutual labels:  rxjava, recyclerview
Featureadapter
FeatureAdapter (FA) is an Android Library providing an optimized way to display complex screens on Android.
Stars: ✭ 112 (+133.33%)
Mutual labels:  rxjava, recyclerview
Supermvp
MVP“美”图+新闻+天气预报+Material+RxJava3+Retrofit2+Glide4+AndroidX+Leakcanary+Butterknife
Stars: ✭ 763 (+1489.58%)
Mutual labels:  rxjava, recyclerview
Recyclerviewdemo
Demo showing the basics to advanced use cases of Android RecyclerView
Stars: ✭ 92 (+91.67%)
Mutual labels:  demo-app, recyclerview
Smartrecom
一款基于行为识别和个性化推荐的智能推荐APP,实时为你推荐音乐和电影,让你的生活更休闲,更精彩!
Stars: ✭ 663 (+1281.25%)
Mutual labels:  rxjava, recyclerview
Wanandroid
🐔🏀【停止维护,已使用Jetpack+Mvvm重构】根据鸿神提供的WanAndroid开放Api来制作的产品级玩安卓App,采用Kotlin语言,基于Material Design+AndroidX +MVP+RxJava+Retrofit等框架开发,注释超详细,方便大家练手
Stars: ✭ 674 (+1304.17%)
Mutual labels:  demo-app, rxjava
Observableadapter
RecyclerView Adapter for RxJava, separates collection model from Android framework dependencies
Stars: ✭ 15 (-68.75%)
Mutual labels:  rxjava, recyclerview
Google Books Android Viewer
Android library to bridge between RecyclerView and sources like web page or database. Includes demonstrator (Google Books viewer)
Stars: ✭ 37 (-22.92%)
Mutual labels:  recyclerview
Weaponapp
一个尽量做到极致的集大成App,努力做到最好(开发阶段)——MVVM+Retrofit+RxJava+Small 插件化+单元测试+MD
Stars: ✭ 1,011 (+2006.25%)
Mutual labels:  rxjava
Javascript30 Stimulus
Wes Bos 🔥 Javascript30 converted to Stimulus JS 🚀🚀🚀
Stars: ✭ 37 (-22.92%)
Mutual labels:  demo-app
Rxschedulerrule
Simple JUnit rule for overriding RxJava/RxAndroid schedulers during unit tests
Stars: ✭ 35 (-27.08%)
Mutual labels:  rxjava
Flagchatadapter
FlagChatAdapter is easy to implement enchanting recycler view adapter. Just extend your adapter with FlagChatAdapter, impliment some methods and voila! You have got the most beautiful looking chat on your phone. Zero boilerplate code, just put your variables in the right direction.
Stars: ✭ 39 (-18.75%)
Mutual labels:  recyclerview
Firestorerecycleradaptersample
Sample Android project using FirestoreRecyclerAdapter
Stars: ✭ 43 (-10.42%)
Mutual labels:  recyclerview
Star Wars Shop
Simple project with clean architecture and android lifecycle
Stars: ✭ 37 (-22.92%)
Mutual labels:  rxjava
Multi type list view
A flutter customer ListView that displays multiple widget types.
Stars: ✭ 47 (-2.08%)
Mutual labels:  recyclerview
Autoplayvideos
Android library to auto-play/pause videos from url in recyclerview.
Stars: ✭ 981 (+1943.75%)
Mutual labels:  recyclerview
Bigbang
Android base project used by Xmartlabs team
Stars: ✭ 47 (-2.08%)
Mutual labels:  rxjava
Recyclerview Concatadapter
Sample to practice RecyclerView ConcatAdapter
Stars: ✭ 47 (-2.08%)
Mutual labels:  recyclerview
Swipeablerv
Library that makes it easy to implement swipe-to-dismiss in recycler view
Stars: ✭ 41 (-14.58%)
Mutual labels:  recyclerview
Commonitemdecoration
A custom ItemDecoration which appends dividers(with same thickness) between items(with same dimension) for RecyclerView
Stars: ✭ 41 (-14.58%)
Mutual labels:  recyclerview

Circular auto scrolling RecyclerView

This is the implemention of a circular auto scrolling RecyclerView using Kotlin and RxJava

gif

Circular RecyclerView

A basic idea behind a circular view is to looping back to the same item in a different element of an array. The diagram below explains how. Let's say there are 3 items(item1, item2, item3) in our array. Since the array only need the first and last elements of its content, the logic can be more efficient by appending the first element to the end of the array and adding the last element to the front of the array.

img2

Auto scrolling

To make RecyclerView auto scroll, we have to call smoothScrollToPosition every specified interval of time. We can use Flowable.interval to emit sequential Long value. To stop auto scroll if a user swipes RecyclerView, we can listen to the scroll state change.

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].