GridCells.Adaptive

@RequiresApi(value = 31)
class GridCells.Adaptive : GridCells


Defines a grid with as many columns as possible on the condition that every cell has at least minSize space and all extra space distributed evenly.

For example, for the vertical LazyVerticalGrid Adaptive(20.dp) would mean that there will be as many columns as possible and every column will be at least 20.dp and all the columns will have equal width. If the screen is 88.dp wide then there will be 4 columns 22.dp each.

Summary

Public constructors

Adaptive(minSize: Dp)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Dp

fixed width of each column in LazyVerticalGrid

Public constructors

Adaptive

Adaptive(minSize: Dp)
Parameters
minSize: Dp

fixed width of each column in LazyVerticalGrid

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

minSize

Added in 1.0.0
val minSizeDp

fixed width of each column in LazyVerticalGrid