In the new AppCompat library, we can tint the button this way:
You can use DrawableCompat e.g.
public static Drawable setTint(Drawable drawable, int color) { final Drawable newDrawable = DrawableCompat.wrap(drawable); DrawableCompat.setTint(newDrawable, color); return newDrawable; }