recycler-view-divider / com.fondesa.recyclerviewdivider.manager.inset / FixedInsetManager / itemInsetBefore

itemInsetBefore

@Px fun itemInsetBefore(groupCount: Int, groupIndex: Int): Int

Overrides InsetManager.itemInsetBefore

Defines a custom inset that will be applied on the top of each element for a vertical list and on the left of each element for an horizontal list.

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
inset before the item (expressed in pixels).

@Px abstract fun itemInsetBefore(): Int

See Also

InsetManager.itemInsetBefore