Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Predictive Text in EditText

I think this is a pretty simply question, but how do I disable the predictive text for an EditText in Android. Do I set a property in the EditText's XML or a property in the EditText's object... or both? Thanks!

like image 691
Brian Avatar asked Feb 19 '11 08:02

Brian


1 Answers

You can set the inputType property in the XML layout or call setInputType() with one or more (separated by |) of those values.

To disable the suggestions use text|textNoSuggestions. However the Sense UI keyboard seems to ignore that, adding textFilter works here.

like image 91
Gubbel Avatar answered Oct 17 '22 00:10

Gubbel