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

FixedDrawableManager

abstract class FixedDrawableManager : DrawableManager

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

Constructors

<init>

FixedDrawableManager()

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

Functions

itemDrawable

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

Defines a custom Drawable for each group of divider.

abstract fun itemDrawable(): Drawable

Inheritors

DefaultDrawableManager

class DefaultDrawableManager : FixedDrawableManager

Default implementation of DrawableManager that will draw the same Drawable for each item.