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

Modifies the size of a Compose UI layout element to be at least minWidth wide and 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>(minSize: Dp)

Modifies a Compose UI layout element to have a square minimum size of minSize.

<init>(minWidth: Dp, minHeight: Dp)

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

Properties

Dp

Dp

Public constructors

<init>

Min(minSize: Dp)

Modifies a Compose UI layout element to have a square minimum size of minSize.

<init>

Min(
    minWidth: Dp,
    minHeight: Dp)

Modifies the size of a Compose UI layout element to be at least minWidth wide and 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

minWidth

val minWidth: Dp