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

itemDrawable

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

Overrides DrawableManager.itemDrawable

Defines a custom Drawable for each group of divider.

Parameters

groupCount - number of groups in a list (equal to the list size when the span count is 1).

groupIndex - position of the group (equal to the item position when the span count is 1).

Return
Drawable resource for the divider int the current position.

abstract fun itemDrawable(): Drawable

See Also

DrawableManager.itemDrawable