epoxy-adapter / com.airbnb.epoxy / EpoxyItemSpacingDecorator

EpoxyItemSpacingDecorator

open class EpoxyItemSpacingDecorator : ItemDecoration

Modifies item spacing in a recycler view so that items are equally spaced no matter where they are on the grid. Only designed to work with standard linear or grid layout managers.

Constructors

<init>

EpoxyItemSpacingDecorator()
EpoxyItemSpacingDecorator(pxBetweenItems: Int)

Functions

getItemOffsets

open fun getItemOffsets(outRect: Rect, view: View, parent: RecyclerView, state: State): Unit

getPxBetweenItems

open fun getPxBetweenItems(): Int

setPxBetweenItems

open fun setPxBetweenItems(pxBetweenItems: Int): Unit