Build 1.0_r1(from source)

android.text.method
Class HideReturnsTransformationMethod

java.lang.Object
  extended by android.text.method.ReplacementTransformationMethod
      extended by android.text.method.HideReturnsTransformationMethod
All Implemented Interfaces:
TransformationMethod

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 ().


Constructor Summary
HideReturnsTransformationMethod()
           
 
Method Summary
static HideReturnsTransformationMethod getInstance()
           
protected  char[] getOriginal()
          The character to be replaced is \r.
protected  char[] getReplacement()
          The character that \r is replaced with is .
 
Methods inherited from class android.text.method.ReplacementTransformationMethod
getTransformation, onFocusChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HideReturnsTransformationMethod

public HideReturnsTransformationMethod()
Method Detail

getOriginal

protected char[] getOriginal()
The character to be replaced is \r.

Specified by:
getOriginal in class ReplacementTransformationMethod

getReplacement

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

Specified by:
getReplacement in class ReplacementTransformationMethod

getInstance

public static HideReturnsTransformationMethod getInstance()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature