LazyVerticalGrid

Functions summary

Unit
@Composable
LazyVerticalGrid(
    gridCells: GridCells,
    modifier: GlanceModifier,
    horizontalAlignment: Alignment.Horizontal,
    content: LazyVerticalGridScope.() -> Unit
)

The DSL implementation of a lazy grid layout.

Unit
@ExperimentalGlanceApi
@Composable
LazyVerticalGrid(
    gridCells: GridCells,
    activityOptions: Bundle,
    modifier: GlanceModifier,
    horizontalAlignment: Alignment.Horizontal,
    content: LazyVerticalGridScope.() -> Unit
)

The DSL implementation of a lazy grid layout.

Functions

LazyVerticalGrid

@Composable
fun LazyVerticalGrid(
    gridCells: GridCells,
    modifier: GlanceModifier = GlanceModifier,
    horizontalAlignment: Alignment.Horizontal = Alignment.Start,
    content: LazyVerticalGridScope.() -> Unit
): Unit

The DSL implementation of a lazy grid layout. It composes only visible rows of the grid.

Parameters
gridCells: GridCells

the number of columns in the grid.

modifier: GlanceModifier = GlanceModifier

the modifier to apply to this layout

horizontalAlignment: Alignment.Horizontal = Alignment.Start

the horizontal alignment applied to the items.

content: LazyVerticalGridScope.() -> Unit

a block which describes the content. Inside this block you can use methods like LazyVerticalGridScope.item to add a single item or LazyVerticalGridScope.items to add a list of items. If the item has more than one top-level child, they will be automatically wrapped in a Box.

LazyVerticalGrid

@ExperimentalGlanceApi
@Composable
fun LazyVerticalGrid(
    gridCells: GridCells,
    activityOptions: Bundle,
    modifier: GlanceModifier = GlanceModifier,
    horizontalAlignment: Alignment.Horizontal = Alignment.Start,
    content: LazyVerticalGridScope.() -> Unit
): Unit

The DSL implementation of a lazy grid layout. It composes only visible rows of the grid.

Parameters
gridCells: GridCells

the number of columns in the grid.

activityOptions: Bundle

Additional options built from an android.app.ActivityOptions to apply to an activity start.

modifier: GlanceModifier = GlanceModifier

the modifier to apply to this layout

horizontalAlignment: Alignment.Horizontal = Alignment.Start

the horizontal alignment applied to the items.

content: LazyVerticalGridScope.() -> Unit

a block which describes the content. Inside this block you can use methods like LazyVerticalGridScope.item to add a single item or LazyVerticalGridScope.items to add a list of items. If the item has more than one top-level child, they will be automatically wrapped in a Box.