getItemOffsets

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

Retrieves offsets for the given item. Each field of outRect specifies the number of pixels that the item view should be inset by, similar to padding or margin.

Throws

when an adapter other than ListGroupItemsCollection is used.