Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android EditText Capital Characters

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.

like image 549
rizzz86 Avatar asked Nov 28 '22 09:11

rizzz86


1 Answers

You just need to try with android:inputType attribute.

As per your requirement, you can include android:inputType="textCapCharacters"

like image 110
Paresh Mayani Avatar answered Dec 06 '22 11:12

Paresh Mayani