How to capitalize the first letter of text in a TextView in an Android Application

前端 未结 11 1786
孤街浪徒
孤街浪徒 2020-12-23 15:35

I\'m not referring to textInput, either. I mean that once you have static text in a TextView (populated from a Database call to user inputted data (that may not be Capitaliz

11条回答
  •  佛祖请我去吃肉
    2020-12-23 16:09

    You can add Apache Commons Lang in Gradle like compile 'org.apache.commons:commons-lang3:3.4'

    And use WordUtils.capitalizeFully(name)

提交回复
热议问题