🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

TextAlign

Defines the alignment of the text in its view.

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

Defines the alignment of the text in its view.

Functions

toString

Source set: Android
override fun toString(): String

Members

Companion

Source set: Android
public companion object

Properties

Left

Source set: Android
public val Left: TextAlign = TextAlign(1)

Align the text on the left edge of the container.

Source set: Android
public val Right: TextAlign = TextAlign(2)

Align the text on the right edge of the container.

Center

Source set: Android
public val Center: TextAlign = TextAlign(3)

Align the text in the center of the container.

Start

Source set: Android
public val Start: TextAlign = TextAlign(4)

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.

End

Source set: Android
public val End: TextAlign = TextAlign(5)

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.

Functions

values

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

Return a list containing all possible values of TextAlign.