Android 12 Developer Preview is here! Try it out, and give us your feedback!

LayoutModifier

interface LayoutModifier : Modifier.Element
androidx.compose.ui.layout.LayoutModifier

A Modifier.Element that changes how its wrapped content is measured and laid out. It has the same measurement and layout functionality as the androidx.compose.ui.layout.Layout component, while wrapping exactly one layout due to it being a modifier. In contrast, the androidx.compose.ui.layout.Layout component is used to define the layout behavior of multiple children.

Summary

Public methods
open Int

The lambda used to calculate IntrinsicMeasurable.maxIntrinsicHeight.

open Int

The function used to calculate IntrinsicMeasurable.maxIntrinsicWidth.

abstract MeasureResult
MeasureScope.measure(measurable: Measurable, constraints: Constraints)

The function used to measure the modifier.

open Int

The lambda used to calculate IntrinsicMeasurable.minIntrinsicHeight.

open Int

The function used to calculate IntrinsicMeasurable.minIntrinsicWidth.

Inherited functions
Inherited extension functions
From androidx.compose.foundation.layout
Modifier