android set text color programmatically 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"));