recycler-view-divider / com.fondesa.recyclerviewdivider.manager.size / FixedSizeManager

FixedSizeManager

abstract class FixedSizeManager : SizeManager

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

Constructors

<init>

FixedSizeManager()

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

Functions

itemSize

fun itemSize(drawable: Drawable, orientation: Int, groupCount: Int, groupIndex: Int): Int

Defines a custom size for each group of divider.

abstract fun itemSize(drawable: Drawable, orientation: Int): Int

Inheritors

DefaultSizeManager

class DefaultSizeManager : FixedSizeManager

Default implementation of SizeManager that will calculate the size of each item using the drawable's dimensions. If the dimensions can't be calculated, a default size will be used.