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

InsetManager

interface InsetManager
Deprecated: Use the new divider API instead.

Used to specify a custom logic to set different insets to each divider. You can add a custom DrawableManager in your RecyclerViewDivider.Builder using the RecyclerViewDivider.Builder.drawableManager method.

Functions

itemInsetAfter

abstract 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

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

Inheritors

FixedInsetManager

abstract class FixedInsetManager : InsetManager

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