FileDocCategorySizeDatePackage
HideReturnsTransformationMethod.javaAPI DocAndroid 5.1 API1595Thu Mar 12 22:22:10 GMT 2015android.text.method

HideReturnsTransformationMethod

public class HideReturnsTransformationMethod extends ReplacementTransformationMethod
This transformation method causes any carriage return characters (\r) to be hidden by displaying them as zero-width non-breaking space characters (\uFEFF).

Fields Summary
private static char[]
ORIGINAL
private static char[]
REPLACEMENT
private static HideReturnsTransformationMethod
sInstance
Constructors Summary
Methods Summary
public static android.text.method.HideReturnsTransformationMethodgetInstance()

        if (sInstance != null)
            return sInstance;

        sInstance = new HideReturnsTransformationMethod();
        return sInstance;
    
protected char[]getOriginal()
The character to be replaced is \r.


                
       
        return ORIGINAL;
    
protected char[]getReplacement()
The character that \r is replaced with is \uFEFF.

        return REPLACEMENT;