How to show soft keyboard with numbers first in android
I want the keyboard to be displayed in the following format.
I just tried all the solutions available, but none of them work for my soft keyboard. I need a solution for this.
I used the Qwerty keyboard and input type options.
+3
user2512822
source
to share
3 answers
If you are using EditText then use in layout
android:inputType="numberDecimal"
in android manifest
android:windowSoftInputMode="adjustPan"
+2
Aditi k
source
to share
You can try adding this to your code (where "input" is your EditText):
input.setRawInputType(Configuration.KEYBOARD_12KEY);
0
gilonm
source
to share
You need to set the inputType of your EditText to a number.
<EditText android:inputType = "number|text"..../>
0
mithileshssingh
source
to share