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

FixedInsetManager

abstract class FixedInsetManager : InsetManager
Deprecated: Use the new divider API instead.

Defines a InsetManager which doesn't depend on the item's position.

Constructors

<init>

FixedInsetManager()

Defines a InsetManager which doesn't depend on the item's position.

Functions

itemInsetAfter

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

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

abstract fun itemInsetAfter(): Int

itemInsetBefore

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

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.

abstract fun itemInsetBefore(): Int

Inheritors

DefaultInsetManager

class DefaultInsetManager : FixedInsetManager

Default implementation of InsetManager that will use the same inset for each item.