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

Help to stop annimation #137

Open
AskMeCode opened this issue Jun 19, 2018 · 3 comments
Open

Help to stop annimation #137

AskMeCode opened this issue Jun 19, 2018 · 3 comments

Comments

@AskMeCode
Copy link

AskMeCode commented Jun 19, 2018

Hello all how i can stop animation please:

YoYo.with(animationView).duration(1000).repeat(100).withListener(new Animator.AnimatorListener() {
@OverRide
public void onAnimationStart(Animator animation) {
}
@OverRide
public void onAnimationEnd(Animator animation) {
}
@OverRide
public void onAnimationCancel(Animator animation) {
}
@OverRide
public void onAnimationRepeat(Animator animation) {
}
}).playOn(view);

@KieuQ
Copy link

KieuQ commented Jul 18, 2018

Assign it to a YoYoString variable.
YoYo.YoYoString yoyoString = YoYo.with(animationView) .duration(1000) .repeat(100) .withListener(so on).playOn(view);
then later on your code you can call yoyoString.stop().

@giantss
Copy link

giantss commented Oct 29, 2019

@KieuQ
YoYo.YoYoString yoyoString = YoYo.with(Techniques.Tada).duration(1000).repeat(-1).playOn(mBox);

yoyoString.stop() no stop.

@Peterragheb
Copy link

assigning animation to yoyoString prevents the animation from starting.

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