AutoCompleteTextView没有字典的提示 [英] AutoCompleteTextView without dictionary hints

查看:190
本文介绍了AutoCompleteTextView没有字典的提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Autocompletetextview场。问题是,在纵向视图中,除了从我的数组,显示上方的建议,一间酒吧下面从字典建议弹出。我似乎无法弄清楚如何禁用这些。

I have an Autocompletetextview field. The problem is that in portrait view, in addition to the suggestions from my array that show up top, a bar pops up below with suggestions from a dictionary. I can't seem to figure out how to disable those.

推荐答案

在你的XML尝试,的inputType =textNoSuggestions

开发文档

textNoSuggestions - 可以组合
  文字和其变化,以
  指示该输入法不应该显示
  任何基于字典的字的建议。
  对应于
  TYPE_TEXT_FLAG_NO_SUGGESTIONS。

textNoSuggestions - Can be combined with text and its variations to indicate that the IME should not show any dictionary-based word suggestions. Corresponds to TYPE_TEXT_FLAG_NO_SUGGESTIONS.

这篇关于AutoCompleteTextView没有字典的提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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