Edit Text uppercase

imgsimonebiliato

Well-Known Member
Licensed User
Longtime User
Hi,
is there a way to set only UPPERCASE in keyboard when editing an edittext?
 

Roger Garstang

Well-Known Member
Licensed User
Longtime User
You should be able to use the TextChanged event for the view and uppercase the text there if needed. I also put a check in mine to compare the strings and see if it is needed to uppercase to prevent a loop of calling TextChanged when I uppercase the text...I'm not sure if it is needed with Android since this may just override the text change and not fire off another event, but it doesn't hurt since it can prevent an change that isn't needed and run quicker even if only one time.

It would be cool to have the keyboard in uppercase mode or uppercase first letters like some apps do, but I'm not sure of a way to do that.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…