Google is committed to advancing racial equity for Black communities. See how.

CrossAxisAlignment

@Immutable sealed class CrossAxisAlignment
kotlin.Any
   ↳ androidx.compose.foundation.layout.CrossAxisAlignment

Used to specify the alignment of a layout's children, in cross axis direction.

Summary

Companion functions
CrossAxisAlignment
AlignmentLine(alignmentLine: AlignmentLine)

Align children by their baseline.

Companion properties
CrossAxisAlignment

Place children such that their center is in the middle of the cross axis.

CrossAxisAlignment

Place children such that their end edge is aligned to the end edge of the cross axis.

CrossAxisAlignment

Place children such that their start edge is aligned to the start edge of the cross axis.

Companion functions

AlignmentLine

fun AlignmentLine(alignmentLine: AlignmentLine): CrossAxisAlignment

Align children by their baseline.

Companion properties

Center

@Stable val Center: CrossAxisAlignment

Place children such that their center is in the middle of the cross axis.

End

@Stable val End: CrossAxisAlignment

Place children such that their end edge is aligned to the end edge of the cross axis. TODO(popam): Consider rtl directionality.

Start

@Stable val Start: CrossAxisAlignment

Place children such that their start edge is aligned to the start edge of the cross axis. TODO(popam): Consider rtl directionality.