Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

androidx.compose.ui.layout

Interfaces

ContentScale

Represents a rule to apply to scale a source rectangle to be inscribed into a destination

IntrinsicMeasurable

A part of the composition that can be measured.

IntrinsicMeasureScope

The receiver scope of a layout's intrinsic measurements lambdas.

LayoutCoordinates

A holder of the measured bounds for the layout (MeasureBox).

LayoutIdParentData

Can be implemented by values used as parent data to make them usable as tags.

LayoutInfo

The public information about the layouts used internally as nodes in the Compose UI hierarchy.

LayoutModifier

A Modifier.Element that changes how its wrapped content is measured and laid out.

Measurable

A part of the composition that can be measured.

MeasureResult

Interface holding the size and alignment lines of the measured layout, as well as the children positioning logic.

MeasureScope

The receiver scope of a layout's measure lambda.

OnGloballyPositionedModifier

A modifier whose onGloballyPositioned is called with the final LayoutCoordinates of the Layout when the global position of the content may have changed.

OnRemeasuredModifier

A modifier whose onRemeasured is called when the layout content is remeasured.

ParentDataModifier

A Modifier that provides data to the parent Layout.

Remeasurement

This object is associated with a layout node and allows to execute some extra measure/layout actions which are needed for some complex layouts.

RemeasurementModifier

A Modifier.Element that provides a Remeasurement object associated with the layout node the modifier is applied to.

SubcomposeMeasureScope

The receiver scope of a SubcomposeLayout's measure lambda which adds ability to dynamically subcompose a content during the measuring on top of the features provided by MeasureScope.

WithConstraintsScope

Receiver scope being used by the children parameter of WithConstraints

Classes

AlignmentLine

Defines an offset line that can be used by parent layouts to align and position their children.

FixedScale

ContentScale implementation that always scales the dimension by the provided fixed floating point value

HorizontalAlignmentLine

A horizontal AlignmentLine.

Measured

Read-only wrapper over Placeable that exposes the measurement result with no placing ability.

ModifierInfo

Used by tooling to examine the modifiers on a LayoutInfo.

Placeable

A Placeable corresponds to a child layout that can be positioned by its parent layout.

ScaleFactor

Holds 2 dimensional scaling factors for horizontal and vertical axes

TestModifierUpdater

VerticalAlignmentLine

A vertical AlignmentLine.

Type-aliases

IntrinsicMeasureBlock

A function for performing intrinsic measurement.

MeasureBlock

A function for performing layout measurement.

Top-level functions summary

Unit
Layout(content: () -> Unit, minIntrinsicWidthMeasureBlock: IntrinsicMeasureBlock, minIntrinsicHeightMeasureBlock: IntrinsicMeasureBlock, maxIntrinsicWidthMeasureBlock: IntrinsicMeasureBlock, maxIntrinsicHeightMeasureBlock: IntrinsicMeasureBlock, modifier: Modifier = Modifier, measureBlock: MeasureBlock)

Layout is the main core component for layout.

Unit
Layout(content: () -> Unit, modifier: Modifier = Modifier, measureBlock: MeasureBlock)

Layout is the main core component for layout.

Unit
Layout(content: () -> Unit, measureBlocks: MeasureBlocks, modifier: Modifier = Modifier)

Layout is the main core component for layout.

MeasureBlocks

Default MeasureBlocks object implementation, providing intrinsic measurements that use the measure block replacing the measure calls with intrinsic measurement calls.

Unit
MultiMeasureLayout(modifier: Modifier = Modifier, children: () -> Unit, measureBlock: MeasureBlock)

ScaleFactor
ScaleFactor(scaleX: Float, scaleY: Float)

Constructs a ScaleFactor from the given x and y scale values

Unit
SubcomposeLayout(modifier: Modifier = Modifier, measureBlock: SubcomposeMeasureScope.(Constraints) -> MeasureResult)

Analogue of Layout which allows to subcompose the actual content during the measuring stage for example to use the values calculated during the measurement as params for the composition of the children.

Unit

Unit
WithConstraints(modifier: Modifier = Modifier, content: WithConstraintsScope.() -> Unit)

A composable that defines its own content according to the available space, based on the incoming constraints or the current LayoutDirection.

ScaleFactor
lerp(start: ScaleFactor, stop: ScaleFactor, fraction: Float)

Linearly interpolate between two ScaleFactor parameters

MeasureBlocks
measureBlocksOf(minIntrinsicWidthMeasureBlock: IntrinsicMeasureBlock, minIntrinsicHeightMeasureBlock: IntrinsicMeasureBlock, maxIntrinsicWidthMeasureBlock: IntrinsicMeasureBlock, maxIntrinsicHeightMeasureBlock: IntrinsicMeasureBlock, measureBlock: MeasureBlock)

Creates an instance of MeasureBlocks to pass to