-
Notifications
You must be signed in to change notification settings - Fork 554
5.x | Smooth Layout Managers
Davide Steduto edited this page Jul 25, 2016
·
6 revisions
The library comes with 2 Layout Managers:
- SmoothScrollLinearLayoutManager
- SmoothScrollGridLayoutManager
As their name say, they provide the smooth scroll, used internally for special use case, such as, expand an item to show the sub items and also others operations.
If you want use them, I recommend to execute the scroll in post or postDelayed. The reason is to allow the LayoutManager to complete its process so that scrolling animation doesnt't raise exception of inconsistency.
mRecyclerView.post(new Runnable() {
@Override
public void run() {
mRecyclerView.smoothScrollToPosition(position);
}
});- Update Data Set
- Selection modes
- Headers and Sections
- Scrollable Headers and Footers
- Expandable items
- Drag&Drop and Swipe
- EndlessScroll / On Load More
- Search Filter
- FastScroller
- Adapter Animations
- Third party Layout Managers
- Payload
- Smooth Layout Managers
- Flexible Item Decoration
- Utils
- ActionModeHelper
- AnimatorHelper
- EmptyViewHelper
- UndoHelper
* = Under revision!