DefaultSpanSizeLookup

Default implementation for SpanSizeLookup. Each item occupies 1 span.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getSpanIndex(position: Int, spanCount: Int): Int
Returns the final span index of the provided position.
Link copied to clipboard
open fun getSpanSize(position: Int): Int
Returns the number of span occupied by the item at position.