android textview text color programmatically code example
Example 1: mtextview.settextcolor(getresources().getcolor(r.color.));
mTextView.setTextColor(getResources().getColor(R.color.<name_of_color>));
Example 2: change color of text in textview android
TextView text = (TextView) findViewById(R.id.text);
text.setTextColor(Color.parseColor("#FFFFFF"));
Example 3: android settextcolor programmatically
mTextView.setTextColor(Color.parseColor("#bdbdbd"));