Android - Text Input Type Person Name Isn't Working
In my android project I want a textfield of type personname where by default caps lock is activated, however, this code isn't working. Copy
as using only "textPersonName"
is not enough so name's first letters would be capitalized.
Similarly with postal addresses:
android:inputType="textPostalAddress|textCapSentences"
Solution 2:
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!
Solution 3:
I used this for the caps words and no suggestion
android:inputType="textCapWords|textNoSuggestions"
e.g. Tom Hanks
Solution 4:
If you want all caps, just use android:textAllCaps="true"
Post a Comment for "Android - Text Input Type Person Name Isn't Working"