|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.support.v4.text.TextUtilsCompat
public class TextUtilsCompat
Field Summary | |
---|---|
static java.util.Locale |
ROOT
|
Constructor Summary | |
---|---|
TextUtilsCompat()
|
Method Summary | |
---|---|
static int |
getLayoutDirectionFromLocale(java.util.Locale locale)
Return the layout direction for a given Locale |
static java.lang.String |
htmlEncode(java.lang.String s)
Html-encode the string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.Locale ROOT
Constructor Detail |
---|
public TextUtilsCompat()
Method Detail |
---|
public static java.lang.String htmlEncode(java.lang.String s)
s
- the string to be encoded
public static int getLayoutDirectionFromLocale(java.util.Locale locale)
locale
- the Locale for which we want the layout direction. Can be null.
ViewCompat.LAYOUT_DIRECTION_LTR
or
ViewCompat.LAYOUT_DIRECTION_RTL
.
Be careful: this code will need to be updated when vertical scripts will be supported
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |