How to switch to numeric with special characters keyboard of EditText in Android by default

删除回忆录丶 提交于 2019-12-06 15:51:27
Wishmaster

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?

johnrao07

try to use this in java:

editText.setInputType(InputType.TYPE_CLASS_TEXT);              
editText.setRawInputType(InputType.TYPE_CLASS_NUMBER);

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!