textViewオブジェクト:textSample
filename
val colorStr = Color.parseColor("#" + Integer.toHexString(context.resources.getColor(R.color.color_sample1)))
val txtStr = "This is a <font color="+colorStr+">sample.</font>"
textSample.text = Html.fromHtml(txtStr)
結果: This is a sample.