Can you make only the first letter in EditText capitalize?

Asked 1 years ago, Updated 1 years ago, 105 views

I'm making an app that shows my personal to-do list. They're all making it well, but there's one small problem. When I try to add a list, I show EditText in the dialog, but the problem is that when I click EditText, usually apps press the shift key to enter capital letters, but my app doesn't. I think it'll be easy to fix, but I can't find the answer no matter how hard I look for it. I think I can touch the xml property, what should I do?

android android-edittext

2022-09-22 22:20

1 Answers

android:inputType="textCapSentences" You can put it in the properties of EditText in xml.

See http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType.


2022-09-22 22:20

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.