有没有办法得到一个Android的软键盘与Java的code只有数字(没有小数,空格)?小数、没有办法、空格、键盘

由网友(渔鱼)分享简介:我有一个使用不同的键盘布局的iPhone应用程序。有些是自定义的,有些是建立在:I have an iPhone app that uses different keyboard layouts. Some are custom and some are built in:数字只有:小数:有关ISBN号自定义X键:...

我有一个使用不同的键盘布局的iPhone应用程序。有些是自定义的,有些是建立在:

I have an iPhone app that uses different keyboard layouts. Some are custom and some are built in:

数字只有:

小数:

有关ISBN号自定义X键:

Custom X button for ISBN numbers:

我想这样做在Android上同样的事情,但即使正常 InputType.TYPE_CLASS_NUMBER 还包括一个小数,空格,逗号等。

I'd like to do the same thing on Android, but even the normal InputType.TYPE_CLASS_NUMBER still includes a decimals, space, comma, etc.

我怎么可以自定义键盘Android中??

How can I customize the keyboards in Android??

推荐答案

它使用内置的键盘是不可能的。你必须开发一个定制的软键盘,或写入就像一个键盘更换内嵌视图。

It's not possible using the built-in keyboard. You'll have to develop a custom soft keyboard, or write an inline view that works like a keyboard replacement.

阅读全文

相关推荐

最新文章