How can I turn off suggestions in EditText?

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);

This seems to work better;

edittext.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);

i.e. the visible password and no suggestion input types are OR'd together

To make sure you can also add this attribute to your edit text

android:inputType="textNoSuggestions|textVisiblePassword"