Function

layout

Creates a node that allows changing how the wrapped element is measured and laid out.

layout

Source set: Android
public fun SubspaceModifier.layout(
    measure: SubspaceMeasureScope.(SubspaceMeasurable, VolumeConstraints) -> SubspaceMeasureResult
): SubspaceModifier

Creates a node that allows changing how the wrapped element is measured and laid out.

Parameters

measure function that defines the measurement and placement logic.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: