android:capitalize not working

前端 未结 7 1462
Happy的楠姐
Happy的楠姐 2021-02-07 22:16

I have a TextView. I\'m trying to capitalize the first letter in every word.

Here\'s the TextView:

 

        
7条回答
  •  遇见更好的自我
    2021-02-07 22:21

    This is a late answer but I think might help someone...

    If you are comfortable with capitilizing the dynamic text in the java code then you can use:

    textView.setText(text.toUpperCase()); 
    

提交回复
热议问题