On the soft keyboard in Android you can set the soft keyboard to show the numbers instead of a-z keyboard using android:inputType="numberDecimal". However, what do I do if I only want to show the top number row 1 2 3 4 5 6 7 8 9 0 and not the following rows starting with @ # $ % ...?
android:inputType="numberDecimal"
1 2 3 4 5 6 7 8 9 0
@ # $ % ...
Thanx for listening!
You must only add this line on your code:
input.setRawInputType(Configuration.KEYBOARD_12KEY);
this will show only the numeric keyboard.
2.1m questions
2.1m answers
60 comments
57.0k users