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

itemTint

fun itemTint(groupCount: Int, groupIndex: Int): Int

Overrides TintManager.itemTint

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.

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

See Also

TintManager.itemTint