隐藏话筒按钮Android的虚拟键盘 [英] Hide microphone button Android virtual keyboard

查看:138
本文介绍了隐藏话筒按钮Android的虚拟键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能隐藏的麦克风按钮(语音到文本)的编程Android的虚拟键盘。

I wanted to know if is it possible to hide the microphone button (speech-to-text) in Android Virtual Keyboard programatically.

我知道我可以禁用通过设备设置这个选项,但我不希望用户在我的应用程序独立于他/她的设置,使用此功能。
我的意思是我想迫使我的应用程序内的这一行为。

I know I can disable this option through device settings, but I don't want the user to use this feature in my application independently of his/her settings. I mean i want to force this behaviour inside my app.

在此先感谢,
德棉

Thanks in advance, Demian

推荐答案

您不能强制用户通过输入超过pre-定义键盘以外的任何其他已经在用户的设备存在。

You can't force the user input through anything other than pre-defined keyboards that already exist in the user's device.

您可以得到解决这个问题的唯一方法是通过编程自定义的,在即时的键盘,这是一个非常糟糕的主意。

The only way you could get around this is by programming your own custom, on-the-fly keyboard, and that is a very bad idea.

只是禁用语音输入编程在你看的EditText使用XML声明。你可以用属性做到这一点:

Just disable voice input programmatically by using XML declarations in the EditText you're looking at. You can do this with the attribute:

android:privateImeOptions="nm"

这篇关于隐藏话筒按钮Android的虚拟键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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