A library which configures a divider for a RecyclerView.
BaseDividerItemDecoration
is shared between multiple RecyclerView
sGridLayoutManager
's dividerGradientDrawable
containing a color with alphaIntroduced the new divider API which are more customizable. Check the wiki for further information. All the old API have been deprecated and will be removed in 4.x.
The new divider APIs add also these features:
Drawable
using a @ColorRes
or a @DrawableRes
.dp
).Improved support for StaggeredGridLayoutManager
.
Added the following classes to handle the same configuration for each divider:
FixedSizeManager
FixedTintManager
FixedDrawableManager
FixedVisibilityManager
FixedInsetManager
From now on, all the managers which depends on the item position will throw IllegalArgumentException
if used with StaggeredGridLayoutManager
.
Added the support to StaggeredGridLayoutManager
(https://github.com/Fondesa/RecyclerViewDivider/issues/36).
Optimized performance. Updated the following dependencies:
org.jetbrains.kotlin:kotlin-stdlib
from 1.3.31 to 1.3.50
androidx.appcompat:appcompat
from 1.0.2 to 1.1.0