简体   繁体   中英

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

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

在此处输入图片说明

These actions didn't help:

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

How should I do it?

try to use this in java:

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

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM