android:capitalize not working

前端 未结 7 1463
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:16

    If you're targeting API Level 14 and above, you should use

    android:textAllCaps="true"

    Otherwise, you'll have to implement this behavior yourself.

提交回复
热议问题