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.
If you are using EditText then use in layout
android:inputType="numberDecimal"
in android manifest
android:windowSoftInputMode="adjustPan"
You can try adding this to your code (where "input" is your EditText):
input.setRawInputType(Configuration.KEYBOARD_12KEY);
You need to set the inputType of your EditText to a number.
<EditText android:inputType = "number|text"..../>