只显示在Android的软键盘数字键? [英] Only show number buttons on Soft Keyboard in Android?
本文介绍了只显示在Android的软键盘数字键?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在软键盘Android中你可以设置软键盘使用显示的数字,而不是AZ键盘安卓inputType =numberDecimal
。但是,我该怎么办,如果我只是想显示前数行 1 2 3 4 5 6 7 8 9 0
,而不是先从以下行 @#$%...
?
On the soft keyboard in Android you can set the soft keyboard to show the numbers instead of a-z keyboard using android:inputType="numberDecimal"
. However, what do I do if I only want to show the top number row 1 2 3 4 5 6 7 8 9 0
and not the following rows starting with @ # $ % ...
?
感谢名单听!
推荐答案
您必须只在您的code加入这一行:
You must only add this line on your code:
input.setRawInputType(Configuration.KEYBOARD_12KEY);
这将显示的仅数字键盘。
这篇关于只显示在Android的软键盘数字键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文