All Downloads are FREE. Search and download functionalities are using the official Maven repository.

android.text.method.package.html Maven / Gradle / Ivy

Go to download

A library jar that provides APIs for Applications written for the Google Android Platform.

There is a newer version: 14-robolectric-10818077
Show newest version



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:

// 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());




© 2015 - 2024 Weber Informatics LLC | Privacy Policy