added in version 22.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
TextUtilsCompat
public final class TextUtilsCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.text.TextUtilsCompat |
Backwards compatible version of TextUtils
.
Summary
Public methods | |
---|---|
static int | getLayoutDirectionFromLocale(Locale locale) Returns the layout direction for a given Locale |
static String | htmlEncode(String s) Html-encode the string. |
Inherited methods | |
---|---|
![]() java.lang.Object |
Public methods
getLayoutDirectionFromLocale
added in version 22.1.0
int getLayoutDirectionFromLocale (Locale locale)
Returns the layout direction for a given Locale
Parameters | |
---|---|
locale | Locale : the Locale for which we want the layout direction, maybe be null . |
Returns | |
---|---|
int | the layout direction, either LAYOUT_DIRECTION_LTR or LAYOUT_DIRECTION_RTL . |
htmlEncode
added in version 22.1.0
String htmlEncode (String s)
Html-encode the string.
Parameters | |
---|---|
s | String : the string to be encoded |
Returns | |
---|---|
String | the encoded string |