Android.Text.Method Namespace

Provides classes that monitor or modify keypad input.

Remarks

Provides classes that monitor or modify keypad input.

You can use these classes to modify the type of keypad entry for your application, or decipher the keypresses entered for your specific entry method. For example:

java Example

// Set the text to password display style:
EditText txtView = (EditText)findViewById(R.id.text);
txtView.setTransformationMethod(PasswordTransformationMethod.getInstance());

//Set the input style to numbers, rather than qwerty keyboard style.
txtView.setInputMethod(DigitsInputMethod.getInstance());

// Find out whether the caps lock is on.
// 0 is no, 1 is yes, 2 is caps lock on.
int active = MultiTapInputMethod.getCapsActive(txtView.getText());

Classes

TypeReason
ArrowKeyMovementMethodA movement method that provides cursor movement and selection.
BaseKeyListenerAbstract base class for key listeners.
BaseMovementMethodBase classes for movement methods.
CharacterPickerDialogDialog for choosing accented characters related to a base character.
DateKeyListenerFor entering dates in a text field.
DateTimeKeyListenerFor entering dates and times in the same text field.
DialerKeyListenerFor dialing-only text entry
DigitsKeyListenerFor digits-only text entry
HideReturnsTransformationMethodThis transformation method causes any carriage return characters (\r) to be hidden by displaying them as zero-width non-breaking space characters ().
IKeyListenerInterface for converting text key events into edit operations on an Editable class.
IMovementMethodProvides cursor positioning, scrolling and text selection functionality in a Android.Widget.TextView.
ITransformationMethodTextView 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.
ITransformationMethodExtensionsDocumentation for this section has not yet been entered.
LinkMovementMethodA movement method that traverses links in the text buffer and scrolls if necessary.
MetaKeyKeyListenerThis base class encapsulates the behavior for tracking the state of meta keys such as SHIFT, ALT and SYM as well as the pseudo-meta state of selecting text.
MetaStatesEnumerates values returned by several methods of Android.Text.Method.MetaStates and taken as a parameter of several methods of Android.Text.Method.MetaKeyKeyListener.
MultiTapKeyListenerThis is the standard key listener for alphabetic input on 12-key keyboards.
NumberKeyListenerFor numeric text entry
PasswordTransformationMethod [Android Documentation]
QwertyKeyListenerThis is the standard key listener for alphabetic input on qwerty keyboards.
ReplacementTransformationMethodThis transformation method causes the characters in the Android.Text.Method.ReplacementTransformationMethod.GetOriginal array to be replaced by the corresponding characters in the Android.Text.Method.ReplacementTransformationMethod.GetReplacement array.
ScrollingMovementMethodA movement method that interprets movement keys by scrolling the text buffer.
SingleLineTransformationMethodThis transformation method causes any newline characters (\n) to be displayed as spaces instead of causing line breaks, and causes carriage return characters (\r) to have no appearance.
TextKeyListenerThis is the key listener for typing normal text.
TextKeyListener+CapitalizeDocumentation for this section has not yet been entered.
TimeKeyListenerFor entering times in a text field.
Touch [Android Documentation]