Class

StaggeredGridCells.Fixed

Defines a grid with fixed number of rows or columns.

Source set: Common
public class Fixed(private val count: Int) : StaggeredGridCells

Defines a grid with fixed number of rows or columns.

For example, for the vertical LazyVerticalStaggeredGrid Fixed(3) would mean that there are 3 columns 1/3 of the parent width.

Functions

calculateCrossAxisCellSizes

Source set: Common
override fun Density.calculateCrossAxisCellSizes(
            availableSize: Int,
            spacing: Int,
        ): IntArray

hashCode

Source set: Common
override fun hashCode(): Int

equals

Source set: Common
override fun equals(other: Any?): Boolean
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: