仅显示字母数字键显示软键盘? [英] Show the softkeyboard with only alphanumeric keys?

查看:167
本文介绍了仅显示字母数字键显示软键盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能吗?

我想为键盘显示裸露的基本字母和数字按钮,没有设置键或笑脸键或类似的东西,仅显示字母,数字,空格,完成和移位等.

I would like to show the keyboard with the bare basic alphabetic and numeric buttons, no settings key or smiley key or anything like that, just the letters, numbers, space, done, and shift etc.

我发誓我几个月前偶然碰到一篇有关如何将键盘设置为这种模式的文章,但现在找不到了!

I swear I happened to catch an article about how to set the keyboard in this mode months ago, but I can't find it now!

我查看了android:inputType& android:windowSoftInputMode,但我看不到有任何帮助.我想念什么?

I looked at the possible values for android:inputType & android:windowSoftInputMode but I can't see anything that would help. What am I missing?

更新

该软件旨在在特定的平板电脑上运行,客户可以通过该软件购买该平板电脑,然后由我们控制其安装的内容.他们目前使用标准键盘运行Cyanogen 4.2.2.

The software is designed to run on a particular tablet, one that the customers purchase with the software and we control what is installed on it. They currently run Cyanogen 4.2.2 with the standard keyboard.

推荐答案

我认为,实现所需功能的唯一方法是使用自定义KeyboardView类创建自定义软键盘. br> 这是一个教程:自定义键盘,并看到以下问题: Android应用专用的软键盘,尤其是此答案,它链接到一个开源项目.

I think, the only way to achieve what you want it's to create a Custom SoftKeyboard with a custom KeyboardView class.
Here is a tutorial: Custom keyboard and see this SO question: Android app specific soft keyboard especially this answer which links to a open source project.

这篇关于仅显示字母数字键显示软键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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