set text color with hex code programmatically code example
Example: mtextview.settextcolor(getresources().getcolor(r.color.));
mTextView.setTextColor(getResources().getColor(R.color.));
mTextView.setTextColor(getResources().getColor(R.color.));