I have an edittext and I want any character that I type in edittext show in Capital letter. I have used this:
edittext.setInputType(InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS);
But it is not working. I want to do it dynamically. Any ideas.
You just need to try with android:inputType attribute.
As per your requirement, you can include android:inputType="textCapCharacters"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With