tags:

views:

480

answers:

2

Is there a way to programmatically turn off that autosuggest list which pops up as you type in EditText?

A: 

OK, the problem was - in Eclipse you don't get suggestion for flag named: textNoSuggestion

And you can't set it in main.xml (where you design UI) because that attribute for inputType isn't recognized. So you can set it in code using int const:

EditText txtTypeIt = (EditText) this.findViewById(R.id.txtTypeIt); txtTypeIt.setInputType(524288);

And thanks jasta00 for helping me out figure answer for this one.

kape123
+1  A: 

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"
gyller
This is definitely better way... thanks for sharing!
kape123