how to disable spell checker for Android AutoCompleteTextView?

谁都会走 提交于 2019-12-08 19:10:53

问题


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.

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


回答1:


Found the best solution:

android:inputType="textPhonetic"



回答2:


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




回答3:


Put this in your XML:

android:inputType="textNoSuggestions"


来源:https://stackoverflow.com/questions/17703286/how-to-disable-spell-checker-for-android-autocompletetextview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!