In an Android application, there is an EditText so that the first character by default is in upper case, how?

    2 answers 2

    Add to your EditText the inputType attribute with the value "textCapSentences" :

     android:inputType="textCapSentences" 

      Understood, in inputType = we specify the following:

       textCapWords - Ссли Π½Π°Π΄ΠΎ Ρ‡Ρ‚ΠΎΠ± ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ ΠΏΠ΅Ρ€Π²Ρ‹ΠΉ символ, ΠΊΠ°ΠΆΠ΄ΠΎΠ³ΠΎ слова автоматичСски Π±Ρ‹Π» Π² Π²Π΅Ρ€Ρ…Π½Π΅ΠΌ рСгистрС. textCapSentences - ΠΊΠ°ΠΆΠ΄Ρ‹ΠΉ ΠΏΠ΅Ρ€Π²Ρ‹ΠΉ символ прСдлоТСния. textCapCharacters - всС Π±ΡƒΠΊΠ²Ρ‹ сразу Π±ΡƒΠ΄ΡƒΡ‚ большими ΠΏΡ€ΠΈ Π½Π°Π±ΠΎΡ€Π΅.