Adding a color filter to a Drawable changes all Buttons using the same Drawable

Example that should work for you:

Drawable buttonBackground = context.getResources().getDrawable(R.drawable.bg);
buttonBackground = buttonBackground.mutate();

//Set your filter here

Leave a Comment