TextView 在java中使用Html设置字体大小颜色

else {
            tvGouMaiRenShu.setVisibility(View.VISIBLE);
            tvGouMaiRenShu
                    .setText(Html
                            .fromHtml("剩余<font size='9' color='#58bbed' ><big>&nbsp;&nbsp;&nbsp;"
                                    + goodsNum
                                    + "</big></font>"
                                    + "&nbsp;&nbsp;&nbsp;张"));
        }

 

效果如下图:

posted @ 2014-09-01 11:21  Mentos  阅读(1214)  评论(0编辑  收藏  举报