TextAlign
Class
Android
value class TextAlign internal constructor(private val value: Int)
Defines the alignment of the text in its view.
Companion Object
Properties
Android
val Left = TextAlign(1)
Align the text on the left edge of the container.
Android
val Right = TextAlign(2)
Align the text on the right edge of the container.
Android
val Center = TextAlign(3)
Align the text in the center of the container.
Android
val Start = 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.
Android
val End = 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.
Methods
Android
fun values(): List<TextAlign>
Return a list containing all possible values of TextAlign.