第1种:tv.setTextColor(android.graphics.Color.RED);//系统自带的颜色类
<color name="red">#FF0000</color>
<drawable name="red">#FF0000</drawable>
<string name="red">#FF0000</string>
原文地址:点击打开链接