recycler-view-divider / com.fondesa.recyclerviewdivider.manager.tint / TintManager / itemTint

itemTint

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

Defines a custom tint color 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
tint color for the divider's drawable in the current position.