Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

TextDirectionHeuristicsCompat

extends Object
java.lang.Object
   ↳ android.support.v4.text.TextDirectionHeuristicsCompat

Class Overview

Some objects that implement TextDirectionHeuristic.

Summary

Fields
public static final TextDirectionHeuristicCompat ANYRTL_LTR 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.
public static final TextDirectionHeuristicCompat FIRSTSTRONG_LTR Determines the direction based on the first strong directional character, including bidi format chars, falling back to left to right if it finds none.
public static final TextDirectionHeuristicCompat FIRSTSTRONG_RTL Determines the direction based on the first strong directional character, including bidi format chars, falling back to right to left if it finds none.
public static final TextDirectionHeuristicCompat LOCALE Force the paragraph direction to the Locale direction.
public static final TextDirectionHeuristicCompat LTR Always decides that the direction is left to right.
public static final TextDirectionHeuristicCompat RTL Always decides that the direction is right to left.
Public Constructors
TextDirectionHeuristicsCompat ()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final TextDirectionHeuristicCompat ANYRTL_LTR

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.

public static final TextDirectionHeuristicCompat FIRSTSTRONG_LTR

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.

public static final TextDirectionHeuristicCompat FIRSTSTRONG_RTL

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.

public static final TextDirectionHeuristicCompat LOCALE

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

public static final TextDirectionHeuristicCompat LTR

Always decides that the direction is left to right.

public static final TextDirectionHeuristicCompat RTL

Always decides that the direction is right to left.

Public Constructors

public TextDirectionHeuristicsCompat ()