//From API 23 onward, getResources().getColor() is deprecated.
textView.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.color_black));
//Theme
<item name="colorControlNormal">#0000FE</item>
<item name="colorControlActivated">#0000FE</item>
<item name="colorControlHighlight">#0000FE</item>
<EditText
android:backgroundTint="@color/yourcolor" />