InfiniteScrollRecyclerView
Pros:
- Simple plug and play custom RecyclerView.
- Easy to use
- Built on top of RecyclerView, hence it is performant as it works on the typical adapters and layout managers.
Credits:
This view is inspired from iOS App store trending animation.
Usage
In XML: (Grid)
<com.frontier.infinitescrollrecyclerview.view.InfiniteAutoScrollRecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:scrollLayoutType="grid" />
infinite-recyclerview-grid.mp4
In XML: (List)
<com.frontier.infinitescrollrecyclerview.view.InfiniteAutoScrollRecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:scrollLayoutType="list" />
infinite-recyclerview-list.mp4
In Activity or Fragment:
Simple :-)
Just call
recyclerView.startScrolling("YOUR_DRAWABLE_ARRAY")