Google is committed to advancing racial equity for Black communities. See how.

SizeMode

enum class SizeMode
kotlin.Any
   ↳ kotlin.Enum<androidx.compose.foundation.layout.SizeMode>
   ↳ androidx.compose.foundation.layout.SizeMode

Used to specify how a layout chooses its own size when multiple behaviors are possible.

Summary

Enum values

Maximize the amount of free space by expanding to fill the available space, subject to the incoming layout constraints.

Minimize the amount of free space by wrapping the children, subject to the incoming layout constraints.

Inherited extension functions
From androidx.core.util
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

Enum values

Expand

enum val Expand : SizeMode

Maximize the amount of free space by expanding to fill the available space, subject to the incoming layout constraints.

Wrap

enum val Wrap : SizeMode

Minimize the amount of free space by wrapping the children, subject to the incoming layout constraints.