AutoCompleteTextView without dictionary hints

六月ゝ 毕业季﹏ 提交于 2019-12-13 17:21:00

问题


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.


回答1:


In your XML try, inputType="textNoSuggestions".

From the Developer doc:

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.



来源:https://stackoverflow.com/questions/5368848/autocompletetextview-without-dictionary-hints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!