Is there a way to programmatically turn off that autosuggest list which pops up as you type in EditText?
android:inputType="none|numberDecimal" The suggestions will appear for user, but user will not be able accept them.
If you want to get suggestions , when you type in an editable text field , you can do this via AutoCompleteTextView. It provides suggestions automatically when the user is typing. The list of suggestions is displayed in a drop down menu from which the user can choose an item to replace the content of the edit box with.
Some apps, such as password managers, can fill out the views in other apps with data previously provided by the user. These apps that fill out other apps are called autofill services. The autofill framework manages the communication between an app and an autofill service.
I had the same question but I still wanted to set this option in my XML file so I did a little more research until I found it out myself.
Add this line into your EditText.
android:inputType="textFilter"
Here is a Tip. Use this line if you want to be able to use the "enter" key.
android:inputType="textFilter|textMultiLine"
android:inputType="textNoSuggestions"
also you'd better read this
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