shift66
shift66

Reputation: 11958

how to disable spell checker for Android AutoCompleteTextView?

I've searched for this problem but not found any answers for my case.
I have an AutoCompleteTextView and some strings as suggestions (city names).

Android marks them with red line.

enter image description here

I think it's Android's spell checker. How can I prevent spell checking?

Upvotes: 9

Views: 3972

Answers (3)

shift66
shift66

Reputation: 11958

Found the best solution:

android:inputType="textPhonetic"

Upvotes: 12

6thSigma
6thSigma

Reputation: 248

Put this in your XML:

android:inputType="textNoSuggestions"

Upvotes: 7

NetStarter
NetStarter

Reputation: 3225

I am not sure but

You can use android:inputType="textNoSuggestions" to get rid of suggestions and android:autoText to false for autocompletetextview.

The other possible way out will be to use android:inputType="textVisiblePassword"

You can have look at here

Upvotes: 6

Related Questions