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 interface

TextDirectionHeuristicCompat

android.support.v4.text.TextDirectionHeuristicCompat

Class Overview

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

Summary

Public Methods
abstract boolean isRtl ( CharSequence cs, int start, int count)
Guess if a CharSequence is in the RTL direction or not.
abstract boolean isRtl (char[] array, int start, int count)
Guess if a chars array is in the RTL direction or not.

Public Methods

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

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

Parameters
cs the CharSequence.
start start index, inclusive.
count the length to check, must not be negative and not greater than CharSequence.length() - start .
Returns
  • true if all chars in the range are to be considered in a RTL direction, false otherwise.

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

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

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