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
I hope you've found an answer to the question. The answer might help those those come to the thread later. So, you can set multiple tags in similar manner as you do in XML using a |
(pipe).
Something like:
EditText mEditText = new EditText(this);
mEditText.setInputType(InputTpe.TYPE_TEXT_FLAG_CAP_CHARACTERS|InputType.TYPE_TEXT_FLAG_AUTO_CORRECT);
Also, depending on your situation you might want to use setInputType
or setRawInputype
.