TextDirection
enum class TextDirection
kotlin.Any | ||
↳ | kotlin.Enum<androidx.compose.ui.text.style.TextDirection> | |
↳ | androidx.compose.ui.text.style.TextDirection |
Defines the algorithm to be used while determining the text direction.
Summary
Enum values | |
---|---|
This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm. |
|
This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm. |
|
This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm. |
|
Always sets the text direction to be Left to Right. |
|
Always sets the text direction to be Right to Left. |
Inherited extension functions | ||
---|---|---|
From androidx.core.util
|
Enum values
Content
enum val Content : TextDirection
This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm. If no strong directional character is present, then androidx.compose.ui.unit.LayoutDirection is used to resolve the final TextDirection.
- if used while creating a Paragraph object, androidx.compose.ui.text.intl.LocaleList will be used to resolve the direction as a fallback instead of androidx.compose.ui.unit.LayoutDirection.
ContentOrLtr
enum val ContentOrLtr : TextDirection
This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm. If no strong directional character is present, then Left to Right will be used as the default direction.
ContentOrRtl
enum val ContentOrRtl : TextDirection
This value indicates that the text direction depends on the first strong directional character in the text according to the Unicode Bidirectional Algorithm. If no strong directional character is present, then Right to Left will be used as the default direction.