And everything works as expected. By the way I tried to change ripple's color programmatically with the following Java code:
ripple.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
selected = !selected;
ripple.setRippleColor(!selected ? white : green);
}
});
At the first tap on my view ripple effect works fine. From the second tap it does not work anymore. Color is changed but ripple effect is not performed.
I have the following Ripple in my layout
And everything works as expected. By the way I tried to change ripple's color programmatically with the following Java code:
At the first tap on my view ripple effect works fine. From the second tap it does not work anymore. Color is changed but ripple effect is not performed.