GridLayoutManager.DefaultSpanSizeLookup

public static final class GridLayoutManager.DefaultSpanSizeLookup
extends GridLayoutManager.SpanSizeLookup

java.lang.Object
   ↳ androidx.recyclerview.widget.GridLayoutManager.SpanSizeLookup
     ↳ androidx.recyclerview.widget.GridLayoutManager.DefaultSpanSizeLookup


Default implementation for GridLayoutManager.SpanSizeLookup. Each item occupies 1 span.

Summary

Public constructors

DefaultSpanSizeLookup()

Public methods

int getSpanIndex(int position, int spanCount)

Returns the final span index of the provided position.

int getSpanSize(int position)

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

Inherited methods