I just basically want to switch to the number pad mode as soon a certain EditText has the focus.
That's surprisingly easy.cheers
Chiwai Chan
2009-07-14 00:59:18
Also note that you need to target Android 1.5 to use this (it's not available in 1.1)
Wilka
2009-08-09 19:47:06
A:
How can I do it in .java file because i m generating a editbox dynamically.
Jyothi Attaluri
2010-10-05 09:28:19
+1
A:
To do it in a Java file:
EditText input = new EditText(this);
input.setInputType(InputType.TYPE_CLASS_NUMBER);
Dominic
2010-10-06 06:52:25