I am trying to create an EditText
with auto-capitalization and auto-correction implemented. I have manually figured out how to add InputFilter
s to allo
yes, it seems like that should work. however, looking at the docs,
The type of data being placed in a text field, used to help an input method decide how to let the user enter text. The constants here correspond to those defined by InputType. Generally you can select a single value, though some can be combined together as indicated. Setting this attribute to anything besides none also implies that the text is editable.
http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType
so it looks like in general, you can't expect to set two values. The above link shows which flags can be combined together.
also, if you look at android:setInputType, it says this maps to the setRawInputType() method, not setInputType(). you might try calling setRawInputType() in stead of setInputType().
http://developer.android.com/reference/android/widget/TextView.html#setRawInputType(int)