开发者

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

开发者 https://www.devze.com 2023-03-28 21:53 出处:网络
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 key开发者_开发百科board shows first, but then allows you to toggle back to the text

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 key开发者_开发百科board 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?


Per my research and Bert B.'s comment, there is no way to do this cross-device compatible.


Just add

android:inputType="number"

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

0

精彩评论

暂无评论...
验证码 换一张
取 消