Class

TextAlign

Defines the alignment of the text in its view.

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

Defines the alignment of the text in its view.

Companion Object

Properties

Source set: Android
public val Left: TextAlign

Align the text on the left edge of the container.

Source set: Android
public val Right: TextAlign

Align the text on the right edge of the container.

Source set: Android
public val Center: TextAlign

Align the text in the center of the container.

Source set: 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.

Source set: 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

Source set: Android
public fun values(): List<TextAlign>

Return a list containing all possible values of TextAlign.

Last updated: