Can't disable predictive text
android, android-edittext
Solution
A comment from this SO question suggests that the xml attribute doesn't work for some models, but that the java-method does work in these cases. So try this:
edittext.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
edit:
As suggested in the comment below, here's an xml alternative that has worked:
android:inputType="textNoSuggestions|textVisiblePassword"
Problem
I'm trying to disable predictive text for a given `EditText`, as explained here, but I still get the autocomplete by the prediction... I've got a Samsung Galaxy S with XT9 enabled. Anybody can help? ``` <EditText android:id="@+id/search_field" android:layout_width="300dp" android:layout_height="27dp" android:background="@drawable/bg_searchfield" android:hint="@string/search_hint" android:imeOptions="actionSearch" android:inputType="text|textNoSuggestions|textFilter"/> ```