Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

androidx.compose.ui.layout

Interfaces

ContentScale

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

GraphicLayerInfo

The info about the graphics layers used by tooling.

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.

Measured

A Measured corresponds to a layout that has been measured by its parent layout.

MeasurePolicy

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.

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.

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.

Top-level functions summary

Unit

Defines the measure and layout behavior of a Layout.

Unit
Layout(content: () -> Unit, modifier: Modifier = Modifier, measurePolicy: MeasurePolicy)

Layout is the main core component for layout.

Unit
MultiMeasureLayout(modifier: Modifier = Modifier, content: () -> Unit, measurePolicy: MeasurePolicy)

ScaleFactor
ScaleFactor(scaleX: Float, scaleY: Float)

Constructs a ScaleFactor from the given x and y scale values

Unit
SubcomposeLayout(modifier: Modifier = Modifier, measurePolicy: 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

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

Linearly interpolate between two ScaleFactor parameters

Top-level properties summary

HorizontalAlignmentLine

AlignmentLine defined by the baseline of a first line of a androidx.foundation.text.CoreText

HorizontalAlignmentLine

AlignmentLine defined by the baseline of the last line of a androidx.foundation.text.CoreText

Extension functions summary