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 prope开发者_运维问答rty in the EditText's object... or both? Thanks!
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.
精彩评论