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

ArcProgressStackView.animateProgress() to animate only a specific model #9

Closed
vysakhvasanth opened this issue Jul 26, 2016 · 4 comments

Comments

@vysakhvasanth
Copy link

vysakhvasanth commented Jul 26, 2016

Hi,
I am currently using 2 models and tracking two different values. I noticed that once I change the value on one of the model and call animateProgress(), both of them animate. I had a look at the demo app for some guidance, but couldn't find anything relevant. Is it possible to have a model.animateProgress() or animateProgress(model)?

Note: If I don't call the animateProgress, they work fine and each updates independently.

Also this is an awesome library 👍
Thanks

@GIGAMOLE
Copy link
Member

Hello.
Thanks for question.

As you can see, we animate all APSV where it loop trough models and animate progress from last to new. So, if you want to animate only one progress, you must to change one model progress and call animateProgress(). So it will animate and second progress will not change.

@vysakhvasanth
Copy link
Author

I am updating them separately and calling the animateProgress. The behavior I get is that all models get redrawn (to the current progress) when the animateProgress is called.

@GIGAMOLE
Copy link
Member

As a problem you have, you need to animate only one progress? AnimateProgress() method works using AnimatorUpdateListener which trigger on each frame postInvalidate() which redraw all view and all models progresses. So you need to change only one model progress and call animateProgress().

@vysakhvasanth
Copy link
Author

Ahh okay. I had two models updating periodically (one every second and another on a callback). So I called animateProgress() when each progress was updated. Thanks for the help.

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

No branches or pull requests

2 participants