Android虚拟键盘打开大写锁定 [英] Android virtual keyboard turn on caps lock
本文介绍了Android虚拟键盘打开大写锁定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个编辑文本字段.默认情况下,当用户单击它时,它会在虚拟键盘上显示小写字母.
I have an edit text field. When the user clicks on it by default it shows small letters on the virtual keyboard.
默认情况下,我要在键盘上显示首字母大写,其余的要小.
I want by default to display first letter caps and rest of them small on the keyboard.
这怎么办?
推荐答案
尝试将 android:capitalize =句子"
添加到 EditText
的定义中>布局文件.这应该大写
句子的第一个字符.如果要每个单词以大写字母开头,请使用单词.
Try adding android:capitalize="sentences"
to the definition of the EditText
in your Layout
file. This should capitalize
the first character of the sentence. If you want to begin each word with a capital letter use words.
有关此问题的更多信息,请参见 API .
More about this can be found in the API.
这篇关于Android虚拟键盘打开大写锁定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文