skyfishjy / android-ripple-background

A beautiful ripple animation for your app
MIT License
2.26k stars 579 forks source link

After RippleBackground.stopRippleAnimation(), the rippleView still visible #45

Open 565407548 opened 6 years ago

565407548 commented 6 years ago

In some phone, after RippleBackground.stopRippleAnimation(), the rippleView still visible.

rostopira commented 6 years ago

I'm experiencing this issue on Galaxy S8+ with Android 8.0 and on OnePlus 5t 8.0/8.1

LordArma commented 6 years ago

I had same problem with Oreo. I temporary fixed it like this: rippleBackground.startRippleAnimation(); rippleBackground.stopRippleAnimation(); But it's not perfect becuase it has a delay.

rostopira commented 6 years ago

@LordArma I've solved it by changing visibility

rippleBackground.startRippleAnimation();
rippleBackground.setVisibility(View.GONE);