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

[request] Combining animations #745

Closed
dmallcott opened this issue May 3, 2018 · 1 comment
Closed

[request] Combining animations #745

dmallcott opened this issue May 3, 2018 · 1 comment

Comments

@dmallcott
Copy link

Hey good people, hope you're all well.

Recently I could've used some support for combining different animations and playing them as a whole. Something along the lines of combining the jsons programmatically and then using the result as the actual animation. Is this possible at the moment? If not, is there interest in making this a feature?

@gpeal
Copy link
Collaborator

gpeal commented May 4, 2018

@dmallcott You have a few options:

  1. Overlay multiple LottieAnimationViews on top of eachother then call play on each of them. You could also wrap then in a parent view so that you call play on the parent ViewGroup and it delegates to each of its children.
  2. Use a LayerDrawable with an array of LottieDrawables.

I don't see a reason to add this to the core library though.

@gpeal gpeal closed this as completed May 4, 2018
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

2 participants