How can I turn off suggestions in EditText in Android?
Users can enable or disable autofill as well as change the autofill service by navigating to Settings > System > Languages & input > Advanced > Input assistance > Autofill service.
android:inputType="textNoSuggestions"
according to this, may or may not be supported by the IME (the keyboard).
However, this seems to work more often
android:inputType="textNoSuggestions|textVisiblePassword"
It's already described in the link Yoni Samlan posted. You should read the documentation correctly ;)
There is a method called setInputType. All you need is to call it with
edittext.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With