| 1 | <html> |
| 2 | <body> |
| 3 | |
| 4 | <p>Provides classes that monitor or modify keypad input.</p> |
| 5 | <p>You can use these classes to modify the type of keypad entry |
| 6 | for your application, or decipher the keypresses entered for your specific |
| 7 | entry method. For example:</p> |
| 8 | <pre> |
| 9 | // Set the text to password display style: |
| 10 | EditText txtView = (EditText)findViewById(R.id.text); |
| 11 | txtView.setTransformationMethod(PasswordTransformationMethod.getInstance()); |
| 12 | |
| 13 | //Set the input style to numbers, rather than qwerty keyboard style. |
| 14 | txtView.setInputMethod(DigitsInputMethod.getInstance()); |
| 15 | |
| 16 | // Find out whether the caps lock is on. |
| 17 | // 0 is no, 1 is yes, 2 is caps lock on. |
| 18 | int active = MultiTapInputMethod.getCapsActive(txtView.getText()); |
| 19 | </pre> |
| 20 | </body> |
| 21 | </html> |