html - <font color='#ff0000'> does't work in Android -
i use tag in android textview this,
mnamestr = "<font color='#ff0000'>" + "myword" + "</font>"; result = html.fromhtml(mnamestr, html.from_html_mode_legacy); mname.settext(result);
but , does't work.why?
use easiest way
mynametv.settext("myword");
mynametv.settextcolor(color.parsecolor("#fd0101"));
Comments
Post a Comment