recycler-view-divider / com.fondesa.recyclerviewdivider.manager.drawable / DrawableManager

DrawableManager

interface DrawableManager

Used to specify a custom logic to use different drawables as divider. You can add a custom DrawableManager in your RecyclerViewDivider.Builder using the RecyclerViewDivider.Builder.drawableManager method.

Functions

itemDrawable

abstract fun itemDrawable(groupCount: Int, groupIndex: Int): Drawable

Defines a custom Drawable for each group of divider.

Inheritors

FixedDrawableManager

abstract class FixedDrawableManager : DrawableManager

Defines a DrawableManager which doesn't depend on the item's position.