Added in API level 18
TextDirectionHeuristic
public
interface
TextDirectionHeuristic
| android.text.TextDirectionHeuristic |
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 |
Public methods
isRtl
Added in API level 18
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
Added in API level 18
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. |
Interfaces
Classes
- AlteredCharSequence
- AndroidCharacter
- Annotation
- AutoText
- BidiFormatter
- BidiFormatter.Builder
- BoringLayout
- BoringLayout.Metrics
- ClipboardManager
- DynamicLayout
- Editable.Factory
- Html
- InputFilter.AllCaps
- InputFilter.LengthFilter
- Layout
- Layout.Directions
- LoginFilter
- LoginFilter.PasswordFilterGMail
- LoginFilter.UsernameFilterGeneric
- LoginFilter.UsernameFilterGMail
- NoCopySpan.Concrete
- Selection
- Spannable.Factory
- SpannableString
- SpannableStringBuilder
- SpannedString
- StaticLayout
- StaticLayout.Builder
- TextDirectionHeuristics
- TextPaint
- TextUtils
- TextUtils.SimpleStringSplitter
Enums

