问题描述
我想,当有人使用我的应用程序,以关闭显示参考单词软/虚拟键盘(仅在某些活动
)。对于默认的Android键盘,这样可以设置(在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
(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.
这篇关于如何禁用显示"建议"在软键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!