//文字颜色
val content = "<font color=\"#47AEFD\">${position + 1}</font>/${itemCount}"
holder.tv_ques_count.text = Html.fromHtml(content)
//文字颜色
val content = "<font color=\"#47AEFD\">${position + 1}</font>/${itemCount}"
holder.tv_ques_count.text = Html.fromHtml(content)
本文标题:Kotlin在代码中设置文字颜色
本文链接:https://www.haomeiwen.com/subject/nnaynktx.html
网友评论