views:

195

answers:

1

I have an edit text field. When the user clicks on it by default it shows small letters on the virtual keyboard.

I want by default to display first letter caps and rest of them small on the keyboard.

How can this be done?

+1  A: 

Try adding android:capitalize="sentences" to the definition of the EditText in your Layout file. This should capitalize the first character of the sentence. If you want to begin each word with a capital letter use words.

More about this can be found in the API.

Janusz
I also found that you can use android:inputType="textCapSentences"
Travis