{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

androidx.compose.ui.layout

Interfaces

BeyondBoundsLayout

Layout extra items in the specified direction.

BeyondBoundsLayout.BeyondBoundsScope

The scope used in BeyondBoundsLayout.layout.

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.

IntermediateMeasureScope

IntermediateMeasureScope provides access to lookahead results to allow intermediateLayout to leverage lookahead results to define intermediate measurements and placements to gradually converge with lookahead.

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.

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.

LookaheadLayoutCoordinates

This interface is deprecated. LookaheadLayoutCoordinates class has been removed. localLookaheadPositionOfcan be achieved in LookaheadScope using LayoutCoordinates.localLookaheadPositionOf(LayoutCoordinates) function.

LookaheadLayoutScope

This interface is deprecated. LookaheadLayoutScope has been renamed to LookaheadScope

LookaheadScope

LookaheadScope provides a receiver scope for all (direct and indirect) child layouts in LookaheadScope.

Measurable

A part of the composition that can be measured.

MeasurePolicy

Defines the measure and layout behavior of a Layout.

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.

Measured

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

MultiContentMeasurePolicy

Defines the measure and layout behavior of a Layout overload which accepts a list of multiple composable content lambdas.

OnGloballyPositionedModifier

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

OnPlacedModifier

A modifier whose onPlaced is called after the parent LayoutModifier and parent layout has been placed and before child LayoutModifier is placed.

OnRemeasuredModifier

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

ParentDataModifier

A Modifier that provides data to the parent Layout.

PinnableContainer

Represents a container which can be pinned when the content of this container is important.

PinnableContainer.PinnedHandle

This is an object returned by pin which allows to release the pinning.

RelocationModifier

This interface is deprecated. Please use BringIntoViewResponder instead.

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.

SubcomposeIntermediateMeasureScope

SubcomposeIntermediateMeasureScope is the receiver scope for the intermediate measurer policy that gets invoked during the intermediate measure pass.

SubcomposeLayoutState.PrecomposedSlotHandle

Instance of this interface is returned by precompose function.

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.

SubcomposeSlotReusePolicy

This policy allows SubcomposeLayout to retain some of slots which we were used but not used anymore instead of disposing them.

Classes

AlignmentLine

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

AlignmentLineKt
BeyondBoundsLayout.LayoutDirection

The direction (from the visible bounds) that a BeyondBoundsLayout is requesting more items to be laid.

BeyondBoundsLayoutKt
FixedScale

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

HorizontalAlignmentLine

A horizontal AlignmentLine.

LayoutCoordinatesKt
LayoutIdKt
LayoutKt
LayoutModifierKt
LookaheadScopeKt
ModifierInfo

Used by tooling to examine the modifiers on a LayoutInfo.

OnGloballyPositionedModifierKt
OnPlacedModifierKt
OnRemeasuredModifierKt
PinnableContainerKt
Placeable

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

Placeable.PlacementScope

Receiver scope that permits explicit placement of a Placeable.

RelocationModifierKt
RelocationRequester

This class is deprecated. Please use BringIntoViewRequester instead.

RelocationRequesterModifierKt
ScaleFactor

Holds 2 dimensional scaling factors for horizontal and vertical axes

ScaleFactorKt
SubcomposeLayoutKt
SubcomposeLayoutState

State used by SubcomposeLayout.

SubcomposeSlotReusePolicy.SlotIdsSet

Set containing slot ids currently available to reuse.

VerticalAlignmentLine

A vertical AlignmentLine.

BeyondBoundsLayout.LayoutDirection.Companion
ContentScale.Companion

Companion object containing commonly used ContentScale implementations

ScaleFactor.Companion