Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

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
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

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.

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.

Ltr

enum val Ltr : TextDirection

Always sets the text direction to be Left to Right.

Rtl

enum val Rtl : TextDirection

Always sets the text direction to be Right to Left.