只显示在Android的软键盘数字键?只显示、数字键、键盘、Android

由网友(?偽艺术家)分享简介:在软键盘Android中你可以设置软键盘使用显示的数字,而不是AZ键盘安卓inputType =numberDecimal。但是,我该怎么办,如果我只是想显示前数行 1 2 3 4 5 6 7 8 9 0 ,而不是先从以下行 @#$%... ?On the soft keyboard in Android you c...

在软键盘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);

这将显示的仅数字键盘。

阅读全文

相关推荐

最新文章