Issue
I have TextView. I would like to show text in upper case mode. Is there attributed for upper case? Just I have text in strings.xml and I need use the line in several place as lower case and upper case.
Solution
Use String
class method while setting the text to TextView
as
tv.setText(strings.toUpperCase());
Have a look at this post for detail discussion.
EDIT: This was answered way back before API 14. As other answer mentioned here, textView.isAllCaps = true
and its java methods were introduced from TextView
. Please use those.
Answered By - Adil Soomro
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.