I have three buttons with same ripple shape.
when I enter activity I change color of single buttons shape.
RippleDrawable bg = (RippleDrawable) button.getBackground();
GradientDrawable gradient = (GradientDrawable) bg.findDrawableByLayerId(R.id.ripple_color);
gradient.setColor(Color.Black);
but when I reenter activity all buttons have this new color. How to change only this instance of shape instead of modifying shape itself