Skip to content

Most visited

Recently visited

navigation

TextDirectionHeuristicsCompat

public final class TextDirectionHeuristicsCompat
extends Object

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


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.

Inherited methods

From class java.lang.Object

Fields

ANYRTL_LTR

added in version 22.0.0
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.

FIRSTSTRONG_LTR

added in version 22.0.0
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.

FIRSTSTRONG_RTL

added in version 22.0.0
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.

LOCALE

added in version 22.0.0
TextDirectionHeuristicCompat LOCALE

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

LTR

added in version 22.0.0
TextDirectionHeuristicCompat LTR

Always decides that the direction is left to right.

RTL

added in version 22.0.0
TextDirectionHeuristicCompat RTL

Always decides that the direction is right to left.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.