有没有办法得到一个Android的软键盘与Java的code只有数字(没有小数,空格)? [英] Is there a way to get an Android soft keyboard that has only numbers (no decimals, spaces) with Java code?

查看:258
本文介绍了有没有办法得到一个Android的软键盘与Java的code只有数字(没有小数,空格)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用不同的键盘布局的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.

这篇关于有没有办法得到一个Android的软键盘与Java的code只有数字(没有小数,空格)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆