First letter capitalization for EditText

后端 未结 17 2054
傲寒
傲寒 2020-11-28 01:11

I\'m working on a little personal todo list app and so far everything has been working quite well. There is one little quirk I\'d like to figure out. Whenever I go to add a

17条回答
  •  醉话见心
    2020-11-28 01:56

    Just use android:inputType="textCapWords" in your EditText element.

    For example:

    
    

    Refer to the following link for reference: http://developer.android.com/reference/android/widget/TextView.html#attr_android%3ainputType

提交回复
热议问题