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

AbsoluteAlignment

@Immutable data class AbsoluteAlignment : Alignment
kotlin.Any
   ↳ androidx.ui.core.AbsoluteAlignment

Represents an absolute positioning of a point inside a 2D box. The position will not be automatically mirrored in Rtl context.

Summary

Nested classes
data

Represents a absolute positioning of a point on a 1D horizontal finite line.

Public methods
IntOffset
align(size: IntSize, layoutDirection: LayoutDirection)

Returns the position of a 2D point in a container of a given size, according to this AbsoluteAlignment.

Companion properties
AbsoluteAlignment

AbsoluteAlignment

AbsoluteAlignment

AbsoluteAlignment

AbsoluteAlignment.Horizontal

AbsoluteAlignment.Horizontal

AbsoluteAlignment

AbsoluteAlignment

Public methods

align

fun align(
    size: IntSize,
    layoutDirection: LayoutDirection
): IntOffset

Returns the position of a 2D point in a container of a given size, according to this AbsoluteAlignment. The position will not be mirrored in Rtl context.

Companion properties

BottomLeft

@Stable val BottomLeft: AbsoluteAlignment

BottomRight

@Stable val BottomRight: AbsoluteAlignment

CenterLeft

@Stable val CenterLeft: AbsoluteAlignment

CenterRight

@Stable val CenterRight: AbsoluteAlignment

Left

@Stable val Left: AbsoluteAlignment.Horizontal
@Stable val Right: AbsoluteAlignment.Horizontal

TopLeft

@Stable val TopLeft: AbsoluteAlignment

TopRight

@Stable val TopRight: AbsoluteAlignment