Package eu.davidea.flexibleadapter.common
See: Description
-
Class Summary Class Description FlexibleItemAnimator This implementation of RecyclerView.ItemAnimator provides basic animations on remove, add, and move events that happen to the items in a RecyclerView. FlexibleItemDecoration This item decorator implements identical drawing technique of {@code DividerItemDecorator}from Android API, and at the same time, it adds several useful functionalities:- Supports all RecyclerView LayoutManagers that implement (Linear, Grid or StaggeredGrid).
- Can add equal space offset at all sides of an item.
- Can customize the offset for each view type.
- Can customize the offset at the 4 edges: first and last column / first and last row.
- Recognizes the sections of FlexibleAdapter and can add gap offset between them.
- Recognizes the orientation of the current Layout.
- Supports the default Android divider
{@code android.R.attr.listDivider}. - Supports a custom divider by
{@code DrawableRes id}. - Supports drawing the divider over or underneath the items.
- Supports drawing the divider for specific viewTypes.
SmoothScrollGridLayoutManager Optimized implementation of GridLayoutManager to SmoothScroll to a Top position. SmoothScrollLinearLayoutManager Optimized implementation of LinearLayoutManager to SmoothScroll to a Top position. SmoothScrollStaggeredLayoutManager Optimized implementation of StaggeredGridLayoutManager to SmoothScroll to a Top position. TopSnappedSmoothScroller Common class for all Smooth Scroller Layout Managers.