DpadSpanSizeLookup

abstract class DpadSpanSizeLookup

A helper class to provide the number of spans each item occupies.

Default implementation sets each item to occupy exactly 1 span.

Extracted from: GridLayoutManager.SpanSizeLookup to access package protected methods

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun getCachedSpanGroupIndex(position: Int, spanCount: Int): Int
Link copied to clipboard
fun getCachedSpanIndex(position: Int, spanCount: Int): Int
Link copied to clipboard
open fun getSpanGroupIndex(position: Int, spanCount: Int): Int
Link copied to clipboard
open fun getSpanIndex(position: Int, spanCount: Int): Int
Link copied to clipboard
abstract fun getSpanSize(position: Int): Int

Returns the number of span occupied by the item at position.

Link copied to clipboard
Link copied to clipboard