recycler-view-divider / com.fondesa.recyclerviewdivider.inset / InsetProvider

InsetProvider

interface InsetProvider

Provides the divider's insets.

Functions

getDividerInsetEnd

abstract fun getDividerInsetEnd(grid: Grid, divider: Divider): Int

Gets the divider's end inset. The end inset in an horizontal divider is the right inset in left-to-right and the left inset in right-to-left. The end inset in a vertical divider is the bottom inset in top-to-bottom and the top inset in bottom-to-top.

getDividerInsetStart

abstract fun getDividerInsetStart(grid: Grid, divider: Divider): Int

Gets the divider's start inset. The start inset in an horizontal divider is the left inset in left-to-right and the right inset in right-to-left. The start inset in a vertical divider is the top inset in top-to-bottom and the bottom inset in bottom-to-top.