TextUtilsCompat
public final class TextUtilsCompat
Backwards compatible version of TextUtils.
Summary
Public methods |
|
|---|---|
static int |
getLayoutDirectionFromLocale(@Nullable Locale locale)Returns the layout direction for a given Locale |
static @NonNull String |
htmlEncode(@NonNull String s)Html-encode the string. |
Public methods
getLayoutDirectionFromLocale
Added in 1.1.0
public static int getLayoutDirectionFromLocale(@Nullable Locale locale)
Returns the layout direction for a given Locale
| Parameters | |
|---|---|
@Nullable Locale locale |
the |
| Returns | |
|---|---|
int |
the layout direction, either |