In my android project I want a textfield of type personname where by default caps lock is activated, however, this code isn\'t working.
If you want all caps, just use android:textAllCaps="true"
Use
android:inputType="textPersonName|textCapWords"
as using only "textPersonName"
is not enough so name's first letters would be capitalized.
Similarly with postal addresses:
android:inputType="textPostalAddress|textCapSentences"
I used this for the caps words and no suggestion
android:inputType="textCapWords|textNoSuggestions"
e.g. Tom Hanks
If you try to display person name as normal, try this: android:capitalize="words"
. If you want to all caps you can change words
into characters
or doing like Mr. LuxuryMode said!
Edited:
You should remove android:inputType="textPersonName"
field. It will work!