Drawable unwrappedDrawable = AppCompatResources.getDrawable(context, R.drawable.my_drawable);  Drawable wrappedDrawable = DrawableCompat.wrap(unwrappedDrawable); DrawableCompat.setTint(wrappedDrawable, Color.RED);  

Read more of this post