Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 440
d-man Avatar asked May 17 '10 07:05

d-man


People also ask

How do I turn on Caps Lock key?

Pressing the key with the magnifying glass while also pressing the Alt key toggles Caps Lock on and off. You'll know that Caps Lock is on when you type some letters and they are all capitals. Press this keyboard combination again to turn Caps Lock back off.

How do I turn Caps Lock off on my phone?

To turn auto caps off on Android, press “Settings” > “Text correction” > “Auto-capitalization.” Tap the toggle to turn it off. Another way is to tap “Settings” > “System” > “Languages and input” > “On-screen keyboard” > Gboard > “Text correction” before pressing the “Auto-capitalization” toggle.


1 Answers

android:capitalize is deprecated. So please use: android:inputType

android:inputType="textCapSentences"
like image 126
Illegal Argument Avatar answered Sep 28 '22 10:09

Illegal Argument