TextDirectionAlgorithm
enum class TextDirectionAlgorithm
kotlin.Any | ||
↳ | kotlin.Enum<androidx.ui.text.style.TextDirectionAlgorithm> | |
↳ | androidx.ui.text.style.TextDirectionAlgorithm |
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. |
|
Always sets the text direction to be Left to Right. |
|
Always sets the text direction to be Right to Left. |
Enum values
ContentOrLtr
enum val ContentOrLtr : TextDirectionAlgorithm
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 : TextDirectionAlgorithm
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.
ForceLtr
enum val ForceLtr : TextDirectionAlgorithm
Always sets the text direction to be Left to Right.
ForceRtl
enum val ForceRtl : TextDirectionAlgorithm
Always sets the text direction to be Right to Left.