recycler-view-divider / com.fondesa.recyclerviewdivider.drawable / DrawableProvider / getDividerDrawable

getDividerDrawable

abstract fun getDividerDrawable(grid: Grid, divider: Divider): Drawable

Gets the Drawable of the given divider. If the divider simply needs a color, you can return a ColorDrawable of the wanted color.

Parameters

grid - the Grid in which the divider is shown.

divider - the Divider which will render the returned Drawable.

Return
the Drawable of the given divider.