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