Faisal khan Faisal khan -4 years ago 153
Android Question

Android virtual keyboard turn on caps lock

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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download