Alignment

@Immutable
object Alignment

Where a child sits across the axis its container arranges children along: an Alignment.Horizontal positions a child across a Column, an Alignment.Vertical across a Row.

An alignment answers one question - given the child's extent and the extent available to it, how far from the container's leading edge does the child start. Column and Row apply the one they are declared with to every child, and a child names its own through align on ColumnScope / RowScope.

Types

Link copied to clipboard
@Stable
fun interface Horizontal

Horizontal placement of a child within the width available to it, resolved against the container's ComponentOrientation.

Link copied to clipboard
@Stable
fun interface Vertical

Vertical placement of a child within the height available to it.

Properties

Link copied to clipboard

Places a child at the bottom of the height available to it.

Link copied to clipboard

Places a child halfway across the width available to it.

Link copied to clipboard

Places a child halfway down the height available to it.

Link copied to clipboard

Places a child at the trailing edge - the right under a left-to-right orientation.

Link copied to clipboard

Places a child at the leading edge - the left under a left-to-right orientation.

Link copied to clipboard

Places a child at the top of the height available to it.