开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜