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
|
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.