Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.


open class GridLayoutManager : LinearLayoutManager
   ↳ androidx.recyclerview.widget.RecyclerView.LayoutManager
   ↳ androidx.recyclerview.widget.LinearLayoutManager
   ↳ androidx.recyclerview.widget.GridLayoutManager

A RecyclerView.LayoutManager implementations that lays out items in a grid.

By default, each item occupies 1 span. You can change it by providing a custom SpanSizeLookup instance via setSpanSizeLookup(SpanSizeLookup).


Nested classes

Default implementation for SpanSizeLookup.


LayoutParams used by GridLayoutManager.


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

static Int

Inherited constants
Public constructors
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Constructor used when layout manager is set in XML by RecyclerView attribute "layoutManager".

<init>(context: Context!, spanCount: Int)

Creates a vertical GridLayoutManager

<init>(context: Context!, spanCount: Int, orientation: Int, reverseLayout: Boolean)

Public methods
open Boolean

open Int

open Int

open Int

open Int

open RecyclerView.LayoutParams!

open RecyclerView.LayoutParams!

open RecyclerView.LayoutParams!

open Int

open Int

open Int

Returns the number of spans laid out by this grid.

open GridLayoutManager.SpanSizeLookup!

Returns the current SpanSizeLookup used by the GridLayoutManager.

open Boolean

Returns true if the scroll offset and scroll range calculations take account of span information.

open View?