Android TestView使用Html设置字体

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010886975/article/details/54964493
String html = "<font color=\"green\">"+"绿色字体"+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color=\"black\">"+"黑色字体"+"</font>"
textView.setText(Html.fromHtml(html))

猜你喜欢

转载自blog.csdn.net/u010886975/article/details/54964493
今日推荐