Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

TextDirectionHeuristicsCompat

class TextDirectionHeuristicsCompat
kotlin.Any
   ↳ androidx.core.text.TextDirectionHeuristicsCompat

Some objects that implement TextDirectionHeuristic.

Summary

Properties
static TextDirectionHeuristicCompat!

Always decides that the direction is left to right.

static TextDirectionHeuristicCompat!

Always decides that the direction is right to left.

static TextDirectionHeuristicCompat!

Determines the direction based on the first strong directional character, including bidi format chars, falling back to left to right if it finds none.

static TextDirectionHeuristicCompat!

Determines the direction based on the first strong directional character, including bidi format chars, falling back to right to left if it finds none.

static TextDirectionHeuristicCompat!

If the text contains any strong right to left non-format character, determines that the direction is right to left, falling back to left to right if it finds none.

static TextDirectionHeuristicCompat!

Force the paragraph direction to the Locale direction.

Properties

LTR

static val LTR: TextDirectionHeuristicCompat!

Always decides that the direction is left to right.

RTL

static val RTL: TextDirectionHeuristicCompat!

Always decides that the direction is right to left.

FIRSTSTRONG_LTR

static val FIRSTSTRONG_LTR: TextDirectionHeuristicCompat!

Determines the direction based on the first strong directional character, including bidi format chars, falling back to left to right if it finds none. This is the default behavior of the Unicode Bidirectional Algorithm.

FIRSTSTRONG_RTL

static val FIRSTSTRONG_RTL: TextDirectionHeuristicCompat!

Determines the direction based on the first strong directional character, including bidi format chars, falling back to right to left if it finds none. This is similar to the default behavior of the Unicode Bidirectional Algorithm, just with different fallback behavior.

ANYRTL_LTR

static val ANYRTL_LTR: TextDirectionHeuristicCompat!

If the text contains any strong right to left non-format character, determines that the direction is right to left, falling back to left to right if it finds none.

LOCALE

static val LOCALE: TextDirectionHeuristicCompat!

Force the paragraph direction to the Locale direction. Falls back to left to right.