Control Caps-Lock of android softkeypad
I have an EditText
. The softkeypad should popup as "Caps on" state, when I want to edi开发者_如何学JAVAt the editText. Is there any way to do this ?
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.
精彩评论