Java Set TextView Color
textview.setTextColor(this.getResources().getColor(R.color.orange));
Agreeable Aardvark
textview.setTextColor(this.getResources().getColor(R.color.orange));
if (textView.getBackground() instanceof ColorDrawable) {
ColorDrawable cd = (ColorDrawable) textView.getBackground();
int colorCode = cd.getColor();
}