ItemPositionOffset

interface ItemPositionOffset
androidx.car.widget.PagedListView.ItemPositionOffset

Interface for a RecyclerView.Adapter to set the position offset for the adapter to load the data.

For example in the adapter, if the positionOffset is 20, then for position 0 it will show the item in position 20 instead, for position 1 it will show the item in position 21 instead and so on.

Summary

Public methods
abstract Unit
setPositionOffset(positionOffset: Int)

Sets the position offset for the adapter.

Public methods

setPositionOffset

abstract fun setPositionOffset(positionOffset: Int): Unit

Sets the position offset for the adapter.