recycler-view-divider / com.fondesa.recyclerviewdivider.manager.drawable / DefaultDrawableManager

DefaultDrawableManager

class DefaultDrawableManager : FixedDrawableManager

Default implementation of DrawableManager that will draw the same Drawable for each item.

Parameters

drawable - the Drawable that will be drawn for each item.

Constructors

<init>

DefaultDrawableManager(color: Int)

Constructor that will use a ColorDrawable that wraps color.

DefaultDrawableManager()

Constructor that will use a ColorDrawable that wraps the color #CFCFCF.

DefaultDrawableManager(drawable: Drawable)

Default implementation of DrawableManager that will draw the same Drawable for each item.

Functions

itemDrawable

fun itemDrawable(): Drawable

Inherited Functions

itemDrawable

fun itemDrawable(groupCount: Int, groupIndex: Int): Drawable

Defines a custom Drawable for each group of divider.