In an Android application, there is an EditText so that the first character by default is in upper case, how?
2 answers
Add to your EditText the inputType attribute with the value "textCapSentences" :
android:inputType="textCapSentences" |
Understood, in inputType = we specify the following:
textCapWords - Π΅ΡΠ»ΠΈ Π½Π°Π΄ΠΎ ΡΡΠΎΠ± ΠΊΠ°ΠΆΠ΄ΡΠΉ ΠΏΠ΅ΡΠ²ΡΠΉ ΡΠΈΠΌΠ²ΠΎΠ», ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ ΡΠ»ΠΎΠ²Π° Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ΅ΡΠΊΠΈ Π±ΡΠ» Π² Π²Π΅ΡΡ
Π½Π΅ΠΌ ΡΠ΅Π³ΠΈΡΡΡΠ΅. textCapSentences - ΠΊΠ°ΠΆΠ΄ΡΠΉ ΠΏΠ΅ΡΠ²ΡΠΉ ΡΠΈΠΌΠ²ΠΎΠ» ΠΏΡΠ΅Π΄Π»ΠΎΠΆΠ΅Π½ΠΈΡ. textCapCharacters - Π²ΡΠ΅ Π±ΡΠΊΠ²Ρ ΡΡΠ°Π·Ρ Π±ΡΠ΄ΡΡ Π±ΠΎΠ»ΡΡΠΈΠΌΠΈ ΠΏΡΠΈ Π½Π°Π±ΠΎΡΠ΅. |