1

I want to show this keyboard by default on EditText focus:

enter image description here

These actions didn't help:

inputType=number
inputTYpe=phone
numeric=integer
setRawInputType(...) 

How should I do it?

Alexey Strakh
  • 11,069
  • 17
  • 79
  • 159
  • Discussed in some detail here: [How to show Android keyboard with symbols mode by default?](http://stackoverflow.com/q/25219855/3264740). – user3264740 Nov 11 '15 at 12:40

3 Answers3

1

try to use this in java:

editText.setInputType(InputType.TYPE_CLASS_TEXT);              
editText.setRawInputType(InputType.TYPE_CLASS_NUMBER);
Shabbir Dhangot
  • 8,642
  • 9
  • 58
  • 78
johnrao07
  • 6,253
  • 3
  • 29
  • 50
  • looks exactly like this and it is not what I needed: https://www.dropbox.com/s/71z16l0xexrc8ux/Screenshot%202015-10-13%2017.54.08.png?dl=0 – Alexey Strakh Oct 13 '15 at 06:54
  • well that depends on the device you are running on....i did spend a few minutes looking for it, thats what i found – johnrao07 Oct 13 '15 at 07:29
1

That old problem still not solved. There's no way to show numeric keyboard with option of switching back.

This question discussed here Is there a way to show the numbers first on the soft keyboard for Android?

Community
  • 1
  • 1
Wishmaster
  • 840
  • 9
  • 19
0

There's no way to achieve this. Even if your input method includes such a key panel, it's up to the keyboard "author". More importantly, the "even if" is even not guaranteed.

suitianshi
  • 3,250
  • 1
  • 15
  • 34