0

I have set InputType to TYPE_TEXT_VARIATION_PASSWORD to my EditText view to disable auto-suggest. It works fine when language selected is English but when I change language to Japanese, auto suggest is not disabled.

Any idea how to disable auto-suggest programmatically irrespective of the language selected and device type?

Komal Gupta
  • 1,682
  • 2
  • 15
  • 18
  • please have a try at all answers over [Here](http://stackoverflow.com/questions/6281514/android-programmatically-disable-autocomplete-autosuggest-for-edittext-in-emulat) and [Here](http://stackoverflow.com/questions/4281838/how-to-disable-displaying-suggestions-on-the-soft-keyboard) – Manohar Feb 28 '17 at 05:19

1 Answers1

0

Nonprogrammatically:

Go into the XML file, find the EditText, change it with android:inputType="text|textNoSuggestions".

Programmatically:

yourEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);

See here for more details.

sheepiiHD
  • 421
  • 2
  • 16