androidx.compose.foundation.lazy.staggeredgrid
StaggeredGridCells
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 staggered grids, or rows in horizontal staggered grids.
interface StaggeredGridCells
Kinds of StaggeredGridCells
Anywhere a StaggeredGridCells 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 StaggeredGridCells.
Functions
calculateCrossAxisCellSizes
fun Density.calculateCrossAxisCellSizes(availableSize: Int, spacing: Int): IntArray
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 staggered grids, or rows in horizontal staggered grids.