UiDimension

sealed interface UiDimension(source)

Selects how a renderer resolves one layout dimension.

Consumers should handle this sealed hierarchy exhaustively: Exact requests a logical size, while MatchParent requests the maximum size offered by the parent.

Inheritors

Types

Link copied to clipboard
data class Exact(val value: UiDp) : UiDimension

Requests an exact logical dimension.

Link copied to clipboard
data object MatchParent : UiDimension

Requests the maximum dimension offered by the parent.