android - String with multiple fonts and textSize in the same textView -
i have put in same textview string substrings of different sizes , colors. how can do?
you need create string
html tags
, set string
textview
html.fromhtml
below:
((textview) findviewbyid(r.id.txt)).settext( html.fromhtml("<font color=\'" + "#457548" + "'\" >" + "your text" + "</font>"), textview.buffertype.spannable)
more information go to: how-display-html-android
Comments
Post a Comment