Issue
I have an EditText
and I need the text in it (when user types in) to be started with capital letter.
Solution
Be careful if you add both android:capitalize="sentences"
and android:inputType="text"
, as the latter seems to have priority over the first and the input will not be capitalized.
There's a specific inputType
for automatically capitalizing the first letter:
android:inputType="textCapSentences"
See http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType
Answered By - Maragues
Answer Checked By - Katrina (JavaFixing Volunteer)