Skip to content Skip to sidebar Skip to footer

Control Caps-Lock Of Android Softkeypad

I have an EditText. The softkeypad should popup as 'Caps on' state, when I want to edit the editText. Is there any way to do this ?

Solution 1:

Look at the InputType property of the TextView class. Depending on what you exactly need, TYPE_TEXT_FLAG_CAP_CHARACTERS, TYPE_TEXT_FLAG_CAP_SENTENCES or TYPE_TEXT_FLAG_CAP_WORDS should do the job. You can set it either in the layout file or via code.


Post a Comment for "Control Caps-Lock Of Android Softkeypad"