January 19, 2010

Android and Capitalize Letter

I had a textview and what was weird is that I could not get it to always assume capital after a period. Here is what I learned:

android:capitalize

If set, specifies that this TextView has a textual input method and should automatically capitalize what the user types. The default is "none".

Must be one of the following constant values.
Constant     Value    Description
none 0 Don't automatically capitalize anything.
sentences 1 Capitalize the first word of each sentence.
words 2 Capitalize the first letter of every word.
characters 3 Capitalize every character.
This corresponds to the global attribute resource symbol capitalize.

API Link

No comments:

Post a Comment