开发者

AutoCompleteTextView without dictionary hints

开发者 https://www.devze.com 2023-02-17 19:14 出处:网络
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

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 disab开发者_C百科le those.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消