简体   繁体   中英

Is there a way to show the numbers first on the soft keyboard for Android?

I've tried every variation I can think of for input type and raw input type, but I can't get it so that the number keyboard shows first, but then allows you to toggle back to the text keyboard. Right now if you specify text|number, or number|text, the letters always show first, and then you have to toggle to the number keyboard. Is it possible to do the opposite?

根据我的研究和Bert B.的评论,没有办法实现这种跨设备兼容。

Just add

android:inputType="number"

into your EditText field. This should automatically trigger the keyboard to show the number pad first.

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