简体   繁体   中英

hide keyboard autosuggest bar

I have tried

android:inputType="textFilter" 


android:inputType="textNoSuggestions"  


x.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);

android:inputType="textVisiblePassword"

I can see there are a lot of things to try Android programmatically disable autocomplete/autosuggest for EditText in emulator

Is there any method that works on all devices? For instance those commands above don't work on my device, yet work for other people.

x.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);

This works, even though the xml version does not. Probably won't work on all device I install it on. Weird issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM