Object

SpatialAbsoluteAlignment

A collection of common SpatialAlignments unaware of the layout direction.

Source set: Android
public object SpatialAbsoluteAlignment

A collection of common SpatialAlignments unaware of the layout direction.

Properties

TopLeft

Source set: Android
@JvmStatic public val TopLeft: SpatialAlignment = SpatialBiasAbsoluteAlignment(-1f, 1f, 0f)

Aligns at the top of the vertical axis and left of the horizontal axis irrespective of the layout direction.

TopRight

Source set: Android
@JvmStatic public val TopRight: SpatialAlignment = SpatialBiasAbsoluteAlignment(1f, 1f, 0f)

Aligns at the top of the vertical axis and right of the horizontal axis irrespective of the layout direction.

CenterLeft

Source set: Android
@JvmStatic public val CenterLeft: SpatialAlignment = SpatialBiasAbsoluteAlignment(-1f, 0f, 0f)

Aligns at the center of the vertical axis and left of the horizontal axis irrespective of the layout direction.

CenterRight

Source set: Android
@JvmStatic public val CenterRight: SpatialAlignment = SpatialBiasAbsoluteAlignment(1f, 0f, 0f)

Aligns at the center of the vertical axis and right of the horizontal axis irrespective of the layout direction.

BottomLeft

Source set: Android
@JvmStatic public val BottomLeft: SpatialAlignment = SpatialBiasAbsoluteAlignment(-1f, -1f, 0f)

Aligns at the bottom of the vertical axis and left of the horizontal axis irrespective of the layout direction.

BottomRight

Source set: Android
@JvmStatic public val BottomRight: SpatialAlignment = SpatialBiasAbsoluteAlignment(1f, -1f, 0f)

Aligns at the bottom of the vertical axis and right of the horizontal axis irrespective of the layout direction.

Left

Source set: Android
public val Left: SpatialAlignment.Horizontal = SpatialBiasAbsoluteAlignment.Horizontal(-1f)

Aligns at the left of the horizontal axis irrespective of the layout direction.

Source set: Android
public val Right: SpatialAlignment.Horizontal = SpatialBiasAbsoluteAlignment.Horizontal(1f)

Aligns at the right of the horizontal axis irrespective of the layout direction.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: