TransformationMethod.javaAPI DocAndroid 1.5 API1776Wed May 06 22:41:56 BST 2009android.text.method


public interface TransformationMethod
TextView uses TransformationMethods to do things like replacing the characters of passwords with dots, or keeping the newline characters from causing line breaks in single-line text fields.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.CharSequencegetTransformation(java.lang.CharSequence source, android.view.View view)
Returns a CharSequence that is a transformation of the source text -- for example, replacing each character with a dot in a password field. Beware that the returned text must be exactly the same length as the source text, and that if the source text is Editable, the returned text must mirror it dynamically instead of doing a one-time copy.

public voidonFocusChanged(android.view.View view, java.lang.CharSequence sourceText, boolean focused, int direction, previouslyFocusedRect)
This method is called when the TextView that uses this TransformationMethod gains or loses focus.