如何禁用显示"建议"在软键盘 [英] How to disable displaying "suggestions" on the Soft Keyboard

查看:202
本文介绍了如何禁用显示"建议"在软键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想,当有人使用我的应用程序,以关闭显示参考单词软/虚拟键盘(仅在某些活动)。对于默认的Andr​​oid键盘,这样可以设置(在Word中建议设置)下找到。

I want to turn off displaying "Suggested Words" on the soft/virtual keyboard when someone is using my application (only on certain Activities). For the default Android keyboard, this can be found under 'Settings' (under Word Suggestion Settings).

有没有办法只在您的应用程序禁用它,而无需用户手动去这样做呢?基本上,我希望用户不需要提供任何提示键入单词。

Is there a way to disable it only within your application, without requiring the user to manually go and do it? I basically want the user to type words without providing any hints.

谢谢!

推荐答案

在开发2.0+,所谓的方法是设置安卓inputType =textNoSuggestions(<一个href="http://developer.android.com/reference/android/text/InputType.html#TYPE_TEXT_FLAG_NO_SUGGESTIONS">ref).不幸的是,建议仍然在HTC Desire的显示2.2(也可能是其他的HTC Sense设备以及)。
随着机器人:inputType =textVisiblePassword由HTC的sotware键盘不会允许你切换语言
。 所以我坚持机器人:inputType =为TextFilter禁用建议

When developing for 2.0+, the supposed way is setting android:inputType="textNoSuggestions" (ref). Unfortunately, suggestions are still shown on HTC Desire 2.2 (and probably other HTC Sense devices as well).
With "android:inputType="textVisiblePassword" the sotware keyboard by HTC won't allow you to switch language.
So I stick to "android:inputType="textFilter" to disable suggestions.

这篇关于如何禁用显示&QUOT;建议&QUOT;在软键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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