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"/>
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:
edit:
As suggested in the comment below, here’s an xml alternative that has worked: