How to change drawable tint of a button below api level 23 programmatically in android
Here is a quick way to tint your TextView or Button drawable:
private void tintViewDrawable(TextView view) {
Drawable[] drawables = view.getCompoundDrawables();
for (Drawable drawable : drawables) {
if (drawable != null) {
drawable.setColorFilter(getResources().getColor(R.color.colorPrimary), PorterDuff.Mode.SRC_ATOP);
}
}
}