Register now for Android Dev Summit 2019!

DefaultSpanSizeLookup

class DefaultSpanSizeLookup : GridLayoutManager.SpanSizeLookup
kotlin.Any
   ↳ androidx.recyclerview.widget.GridLayoutManager.SpanSizeLookup
   ↳ androidx.recyclerview.widget.GridLayoutManager.DefaultSpanSizeLookup

Default implementation for SpanSizeLookup. Each item occupies 1 span.

Summary

Public constructors

Default implementation for SpanSizeLookup.

Public methods

Int
getSpanIndex(position: Int, spanCount: Int)

Int
getSpanSize(position: Int)

Inherited functions

Public constructors

<init>

DefaultSpanSizeLookup()

Default implementation for SpanSizeLookup. Each item occupies 1 span.

Public methods

getSpanIndex

fun getSpanIndex(position: Int, spanCount: Int): Int

getSpanSize

fun getSpanSize(position: Int): Int