mTextView.setTextColor(Color.parseColor("#bdbdbd"));
//From API 23 onward, getResources().getColor() is deprecated.
textView.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.color_black));
Color.parseColor("#bdbdbd");
<EditText
android:backgroundTint="@color/yourcolor" />