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?

Mando
  • 11,414
  • 17
  • 86
  • 167
  • 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,954
  • 10
  • 58
  • 80
johnrao07
  • 6,690
  • 4
  • 32
  • 55
  • 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 – Mando 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
  • 850
  • 10
  • 19
1

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,300
  • 1
  • 17
  • 34