File: package.html

package info (click to toggle)
android-platform-frameworks-base 1%3A10.0.0%2Br36-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 321,788 kB
  • sloc: java: 962,234; cpp: 274,314; xml: 242,770; python: 5,060; sh: 1,432; ansic: 494; makefile: 47; sed: 19
file content (21 lines) | stat: -rw-r--r-- 726 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
<body>

<p>Provides classes that monitor or modify keypad input.</p>
<p>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:</p>
<pre>
// 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());
</pre>
</body>
</html>