Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

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