美文网首页
使用Html.fromHtml()动态的设置字体颜色以及实现换行

使用Html.fromHtml()动态的设置字体颜色以及实现换行

作者: Bbbig | 来源:发表于2017-02-22 16:25 被阅读0次
    textView.setText(Html.fromHtml("运行代码,点击  Sign in or register  按钮" + "<br>" +
                    "<font color=" +
                    getResources().getColor(R.color.colorAccent) +
                    ">" +
                    "即可输出Log值" +
                    "</font>" + "<br>" + "查看MVP模式下登录的方法执行顺序"));
    

    相关文章

      网友评论

          本文标题:使用Html.fromHtml()动态的设置字体颜色以及实现换行

          本文链接:https://www.haomeiwen.com/subject/dssmwttx.html