A
A
Arman2021-10-23 14:08:19
Android
Arman, 2021-10-23 14:08:19

RippleDrawable to change the background color on which the ripple grows?

In the screenshot you can see when you click, the background appears on which the ripple grows, but I wanted the background to appear when you click, but the growing ripple was not there or that it was not visible
I know how to change the color of the ripples, but here's how to change the background color on which it grows, while I use ripples without elements to go beyond the view

RippleDrawable rippleDrawable = new RippleDrawable(new ColorStateList(new int[][]{new int[] {android.R.attr.state_pressed}}, new int[] {getResources().getColor(R.color.ads)}), null, null);

6173ebc04ed7d201207204.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question