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

getItemOffsets

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

Retrieve any offsets for the given item.

Parameters

outRect - Rect to receive the output.

view - The child view to decorate

parent - RecyclerView this ItemDecoration is decorating

state - The current state of RecyclerView.

See Also

RecyclerView.ItemDecoration.getItemOffsets