开发者

Control Caps-Lock of android softkeypad

开发者 https://www.devze.com 2023-01-18 05:39 出处:网络
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 clas

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

精彩评论

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