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

Min

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

Modifies the height of a Compose UI layout element to be at least minHeight 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>(minHeight: Dp)

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

Properties

Dp

Public constructors

<init>

Min(minHeight: Dp)

Modifies the height of a Compose UI layout element to be at least minHeight 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

minHeight

val minHeight: Dp