We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Link to fork with a repro in the issue-repro module issue-repo, test APKs is in the release section.
Describe the bug
I can switch between normal Drawable and LottieDrawable with version 6.2.0, just like Twitter's Like button.
Like
binding.animationView.setOnClickListener { if((it as LottieAnimationView).drawable is LottieDrawable){ it.setImageDrawable(ContextCompat.getDrawable(this, R.mipmap.ic_launcher)) }else{ it.setAnimation(R.raw.heart) it.playAnimation() } }
lottie-android/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java
Lines 608 to 612 in fe412fa
Changes to #2441 prevent us from setting the same animation for LottieAnimationView, but it also prevents us from replaying the animation.
I tried set frame to 0 then playAnimation(), but it didn't work.
playAnimation()
Steps To Reproduce Steps to reproduce the behavior:
heart
What I want to know
The text was updated successfully, but these errors were encountered:
Remove LottieAnimationView.composition so it doesn't get out of sync (#…
16e95c4
…2468) Fixes #2467
Successfully merging a pull request may close this issue.
Link to fork with a repro in the issue-repro module
issue-repo, test APKs is in the release section.
Describe the bug
I can switch between normal Drawable and LottieDrawable with version 6.2.0, just like Twitter's
Like
button.lottie-android/lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java
Lines 608 to 612 in fe412fa
Changes to #2441 prevent us from setting the same animation for LottieAnimationView, but it also prevents us from replaying the animation.
I tried set frame to 0 then
playAnimation()
, but it didn't work.Steps To Reproduce
Steps to reproduce the behavior:
heart
animation should start playing.heart
, it should changes to app logo with no animation.What I want to know
The text was updated successfully, but these errors were encountered: