Skip to content

Most visited

Recently visited

navigation

TextDirectionHeuristicCompat

public interface TextDirectionHeuristicCompat

android.support.v4.text.TextDirectionHeuristicCompat


Interface for objects that use a heuristic for guessing at the paragraph direction by examining text.

Summary

Public methods

abstract boolean isRtl(char[] array, int start, int count)

Guess if a chars array is in the RTL direction or not.

abstract boolean isRtl(CharSequence cs, int start, int count)

Guess if a CharSequence is in the RTL direction or not.

Public methods

isRtl

boolean isRtl (char[] array, 
                int start, 
                int count)

Guess if a chars array is in the RTL direction or not.

Parameters
array char: the char array.
start int: start index, inclusive.
count int: the length to check, must not be negative and not greater than array.length - start.
Returns
boolean true if all chars in the range are to be considered in a RTL direction, false otherwise.

isRtl

boolean isRtl (CharSequence cs, 
                int start, 
                int count)

Guess if a CharSequence is in the RTL direction or not.

Parameters
cs CharSequence: the CharSequence.
start int: start index, inclusive.
count int: the length to check, must not be negative and not greater than CharSequence.length() - start.
Returns
boolean true if all chars in the range are to be considered in a RTL direction, false otherwise.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

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.