Is it possible to have an EditText that allows multilines and doesn't show the suggestions? I tried with this code:
android:inputType="textFilter|textMultiLine"
Which I saw in this question, but it didn't work for me. If I try to use both at the same time, the EditText supports multiline, but the suggestions appear. Separately, they work properly.
Is this a bug in the SDK? Or maybe it is not possible to combine them?
Thanks!
This is supposed to do what you want:
android:inputType="textFilter|textMultiLine|textNoSuggestions"
Although I haven't tried it myself. "textNoSuggestions" is only available since API 5.
If you created Edittext Dynamically and want to achieve Multiline & No autosuggest then you need to use: setRawInputType
editText.setRawInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD | InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
you can also use android:SingleLine="false"
to use multiline for an EditText
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With