Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I turn off suggestions in EditText?

Tags:

android

How can I turn off suggestions in EditText in Android?

like image 777
James Avatar asked Sep 24 '10 18:09

James


People also ask

How do I turn off Autocomplete on 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.


2 Answers

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" 
like image 167
Kurru Avatar answered Oct 19 '22 08:10

Kurru


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); 
like image 32
Tseng Avatar answered Oct 19 '22 09:10

Tseng