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

itemDrawable

abstract fun itemDrawable(groupCount: Int, groupIndex: Int): Drawable
Deprecated: Use the new divider API instead.

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.