Most visited

Recently visited

TextUtilsCompat

public final class TextUtilsCompat
extends Object

java.lang.Object
    android.support.v4.text.TextUtilsCompat


摘要(Summary)

Fields

public static final Locale ROOT

公共方法(Public methods)

static int getLayoutDirectionFromLocale(Locale locale)

返回给定语言环境的布局方向

static String htmlEncode(String s)

Html编码字符串。

继承方法(Inherited methods)

From class java.lang.Object

Fields

ROOT

Locale ROOT

公共方法(Public methods)

getLayoutDirectionFromLocale

int getLayoutDirectionFromLocale (Locale locale)

返回给定语言环境的布局方向

参数(Parameters)
locale Locale: the Locale for which we want the layout direction. Can be null.
返回(Returns)
int the layout direction. This may be one of: LAYOUT_DIRECTION_LTR or LAYOUT_DIRECTION_RTL. Be careful: this code will need to be updated when vertical scripts will be supported

htmlEncode

String htmlEncode (String s)

Html编码字符串。

参数(Parameters)
s String: the string to be encoded
返回(Returns)
String the encoded string

Hooray!