Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

Alignment

@Immutable interface Alignment
androidx.ui.core.Alignment

An interface to position a point inside a 2D box. Alignment is often used to define the alignment of a box inside a parent container.

Summary

Nested classes
abstract

An interface that positions a point on a 1D horizontal finite line.

abstract

An interface that positions a point on a 1D vertical finite line.

Public methods
abstract IntOffset
align(size: IntSize, layoutDirection: LayoutDirection = LayoutDirection.Ltr)

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

Companion properties
Alignment.Vertical

Alignment

Alignment

Alignment

Alignment

Alignment

Alignment.Horizontal

Alignment

Alignment.Vertical

Alignment.Horizontal

Alignment.Horizontal

Alignment.Vertical

Alignment

Alignment

Alignment

Public methods

align

abstract fun align(
    size: IntSize,
    layoutDirection: LayoutDirection = LayoutDirection.Ltr
): IntOffset

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

Companion properties

Bottom

@Stable val Bottom: Alignment.Vertical

BottomCenter

@Stable val BottomCenter: Alignment

BottomEnd

@Stable val BottomEnd: Alignment

BottomStart

@Stable val BottomStart: Alignment

Center

@Stable val Center: Alignment

CenterEnd

@Stable val CenterEnd: Alignment

CenterHorizontally

@Stable val CenterHorizontally: Alignment.Horizontal

CenterStart

@Stable val CenterStart: Alignment

CenterVertically

@Stable val CenterVertically: Alignment.Vertical

End

@Stable val End: Alignment.Horizontal

Start

@Stable val Start: Alignment.Horizontal

Top

@Stable val Top: Alignment.Vertical

TopCenter

@Stable val TopCenter: Alignment

TopEnd

@Stable val TopEnd: Alignment

TopStart

@Stable val TopStart: Alignment