Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

TextUtilsCompat

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

Summary

Fields
public static final Locale ROOT
Public Constructors
TextUtilsCompat ()
Public Methods
static int getLayoutDirectionFromLocale ( Locale locale)
Return the layout direction for a given Locale
static String htmlEncode ( String s)
Html-encode the string.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final Locale ROOT

Public Constructors

public TextUtilsCompat ()

Public Methods

public static int getLayoutDirectionFromLocale ( Locale locale)

Return the layout direction for a given Locale

Parameters
locale the Locale for which we want the layout direction. Can be null.
Returns

public static String htmlEncode ( String s)

Html-encode the string.

Parameters
s the string to be encoded
Returns
  • the encoded string