You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added a ripple effect to a view. a new activity will be started onClick.
But when I come back to the previous activity(previous view) the ripple effect will finish its animation from where it was left off. Is there any workaround for this?
Thank you.
The text was updated successfully, but these errors were encountered:
Don't attaching the Clicking event to the "setOnClickListener" in the view, instead attach it with the rippleView instance ,by setting "setOnRippleCompleteListener".
so that the event triggers only when the ripple effect completes.
RippleViewrippleView = (RippleView) findViewById(R.id.rippleview);
rippleView.setOnRippleCompleteListener(newRippleView.OnRippleCompleteListener() {
@OverridepublicvoidonComplete(RippleViewrippleView) {
// Start your activity as normal Intentintent = newIntent(MainActivity.this, newActivity.class);
startActivity(intent);
}
});
I've added a ripple effect to a view. a new activity will be started onClick.
But when I come back to the previous activity(previous view) the ripple effect will finish its animation from where it was left off. Is there any workaround for this?
Thank you.
The text was updated successfully, but these errors were encountered: