我想填写一个表格,其中包含名称,地址,城市,某些字段.如果用户输入名字或其他字段,我可以设置,那么默认情况下,android.please中的第一个字母应该是大写字母帮助我.
谢谢
gwv*_*eri 11
您可以在EditText上轻松设置inputType:
<!-- in your xml -->
android:inputType="textCapSentences"
Run Code Online (Sandbox Code Playgroud)
要么
//(programmatically)
yourEditText.setInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
Run Code Online (Sandbox Code Playgroud)
这里是文档.
| 归档时间: |
|
| 查看次数: |
1160 次 |
| 最近记录: |