androidx.compose.foundation.lazy.grid

GridCells

Interface · from org.jetbrains.compose.foundation:foundation:1.12.2

No hand-written docs yet.

This class describes the count and the sizes of columns in vertical grids, or rows in horizontal grids.

interface GridCells

Kinds of GridCells

Anywhere a GridCells is expected, you can pass any of these.

How to get one

Or create one of the kinds listed above.

Used by

Parameters that take a GridCells.

Functions

calculateCrossAxisCellSizes

fun Density.calculateCrossAxisCellSizes(availableSize: Int, spacing: Int): List<Int>

Calculates the number of cells and their cross axis size based on availableSize and spacing.

Nested types

Library docs

This class describes the count and the sizes of columns in vertical grids, or rows in horizontal grids.