改变 texView 的字体颜色

我使用下面的textView方法来改变字体颜色。使用什么格式来指定颜色?

public void setTextColor (int color)

给所有的状态 (normal, selected, focused) 设置成 text 的颜色。

使用

text.setTextColor(#FF0000)

但是不是一个有效的语法。

TextView.setTextColor(Color.BLUE);

TextView.setTextColor(Color.RED);

或者 :

textView.setTextColor(Color.rgb(255,0,0)); // rgb( red , green , blue ) ;
text.setTextColor(R.color.black) ;