TextAlign

Class

Android
public value class TextAlign internal constructor(private val value: Int)

Defines the alignment of the text in its view.

Companion Object

Properties

Android
public val Left: TextAlign

Align the text on the left edge of the container.

Android
public val Right: TextAlign

Align the text on the right edge of the container.

Android
public val Center: TextAlign

Align the text in the center of the container.

Android
public val Start: TextAlign

Align the text on the leading edge of the container.

For Left to Right text, this is the left edge.

For Right to Left text, like Arabic, this is the right edge.

Android
public val End: TextAlign

Align the text on the trailing edge of the container.

For Left to Right text, this is the right edge.

For Right to Left text, like Arabic, this is the left edge.

Methods

Android
public fun values(): List<TextAlign>

Return a list containing all possible values of TextAlign.