android.text.method
public
abstract
class
android.text.method.ReplacementTransformationMethod
This transformation method causes the characters in the getOriginal()
array to be replaced by the corresponding characters in the
getReplacement() array.
Known Direct Subclasses
| HideReturnsTransformationMethod |
This transformation method causes any carriage return characters (\r)
to be hidden by displaying them as zero-width non-breaking space
characters (?). |
| SingleLineTransformationMethod |
This transformation method causes any newline characters (\n) to be
made visible and prevented from causing a line break by displaying
them as arrow characters. |
Summary
Public Constructors
Public Methods
Protected Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
ReplacementTransformationMethod()
Public Methods
Returns a CharSequence that will mirror the contents of the
source CharSequence but with the characters in
getOriginal()
replaced by ones from
getReplacement().
public
void
onFocusChanged(View view, CharSequence sourceText, boolean focused, int direction, Rect previouslyFocusedRect)
Protected Methods
protected
abstract
char[]
getOriginal()
Returns the list of characters that are to be replaced by other
characters when displayed.
protected
abstract
char[]
getReplacement()
Returns a parallel array of replacement characters for the ones
that are to be replaced.