Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EditText without auto-correction, etc

Tags:

android

My EditText needs to accept input consisting of partial words, names, etc. At least on my HTC Desire, this is difficult since the keyboard wants to suggest and/or correct some entries (e.g., changes "gor" to "for"). I tried setting textNoSuggestions on the view, but that doesn't fix it.

Any simple solution to this?

like image 313
gordonwd Avatar asked Sep 26 '10 21:09

gordonwd


People also ask

How do you make EditText read only?

The most reliable way to do this is using UI. setReadOnly(myEditText, true) from this library. There are a few properties that have to be set, which you can check out in the source code.

Is EditText deprecated?

Android Studio:EditText editable is deprecated How to use inputType.

Which attribute of EditText tells the system keyboard what kind of input you are expecting *?

Setting the InputType of an EditText tells the system keyboard what kind of input you are expecting.


1 Answers

Try this:

android:inputType="textFilter" 

If that doesn't work, try:

android:inputType="textFilter|textNoSuggestions" 
like image 187
magicman Avatar answered Oct 18 '22 21:10

magicman