commons/ui / com.vmadalin.commons.ui.recyclerview / RecyclerViewItemDecoration

RecyclerViewItemDecoration

class RecyclerViewItemDecoration : ItemDecoration

Simple item decoration allows the application to add a special drawing and layout offset to specific item views from the adapter's data set. Support the grid and linear layout.

See Also

RecyclerView.ItemDecoration

Constructors

<init>

Simple item decoration allows the application to add a special drawing and layout offset to specific item views from the adapter's data set. Support the grid and linear layout.

RecyclerViewItemDecoration(spacingPx: Int)

Functions

getItemOffsets

Retrieve any offsets for the given item.

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