Android-是否可以从软键盘隐藏某些字符? [英] Android - is it possible to hide certain characters from the soft keyboard?

查看:48
本文介绍了Android-是否可以从软键盘隐藏某些字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在软键盘上隐藏(或禁用)某些字符?之前曾有人问过: Android软键盘-禁用某些键,但没有答案.

Is it possible to hide (or disable) certain characters on the soft keyboard? It's been asked before: Android soft keyboard - disable certain keys but no answer.

(我宁愿隐藏而不是禁用键,但是会使用其中任何一种)谢谢!

(I'd rather hide than disable keys but would go for either) Thanks!

推荐答案

是否可以在软键盘上隐藏(或禁用)某些字符?

Is it possible to hide (or disable) certain characters on the soft keyboard?

仅当您创建自己的输入法编辑器(也称为软键盘)并让用户切换到该编辑器时.

Only if you create your own input method editor (a.k.a., soft keyboard) and get the user to switch to it.

诸如 android:inputType 之类的属性是一些输入法编辑器会尊重并可能控制可用字符的提示.但是,不能保证任何给定的输入法编辑器都会尊重它,以及它将选择包含和排除哪些字符.

Attributes like android:inputType are hints that some input method editors will honor and may control what characters are available. However, there is no guarantee that any given input method editor will honor it and what characters it will elect to include and exclude.

这篇关于Android-是否可以从软键盘隐藏某些字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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