Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ripple effect will continue from where it has been left off #130

Open
symphonyrecords opened this issue Jul 14, 2017 · 3 comments
Open

Ripple effect will continue from where it has been left off #130

symphonyrecords opened this issue Jul 14, 2017 · 3 comments

Comments

@symphonyrecords
Copy link

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.

@kvenkatesh-nyros
Copy link

app:rv_rippleDuration="200"
This will helps you

@zxyaust
Copy link

zxyaust commented Dec 4, 2017

@kvenkatesh-nyros that is not work

@NourZohdy
Copy link

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.

  RippleView rippleView = (RippleView) findViewById(R.id.rippleview);
        rippleView.setOnRippleCompleteListener(new RippleView.OnRippleCompleteListener() {
            @Override
            public void onComplete(RippleView rippleView) {
                // Start your activity as normal 
                Intent intent = new Intent(MainActivity.this, newActivity.class);
                startActivity(intent);
            }
        });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants