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

DefaultInsetManager

class DefaultInsetManager : FixedInsetManager

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

Parameters

insetBefore - the inset that will be applied before each item.

insetAfter - the inset that will be applied after each item.

Constructors

<init>

DefaultInsetManager()

Constructor that assigns a default inset equal to 0.

DefaultInsetManager(insetBefore: Int, insetAfter: Int)

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

Functions

itemInsetAfter

fun itemInsetAfter(): Int

itemInsetBefore

fun itemInsetBefore(): Int

Inherited 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.

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.