The second Android 11 Developer Preview is now available, test it out and share your feedback.

Max

@Stable data class Max : LayoutModifier
kotlin.Any
   ↳ androidx.ui.layout.LayoutHeight.Max

Modifies the height of a Compose UI layout element to be at most maxHeight tall if permitted by its parent.

This modifies the incoming Constraints provided by a layout element's parent. If the incoming constraints do not allow the modified size, the incoming constraints from the parent will restrict the final size.

Summary

Public constructors

<init>(maxHeight: Dp)

Modifies the height of a Compose UI layout element to be at most maxHeight tall if permitted by its parent.

Properties

Dp

Public constructors

<init>

Max(maxHeight: Dp)

Modifies the height of a Compose UI layout element to be at most maxHeight tall if permitted by its parent.

This modifies the incoming Constraints provided by a layout element's parent. If the incoming constraints do not allow the modified size, the incoming constraints from the parent will restrict the final size.

Properties

maxHeight

val maxHeight: Dp