Add custom failure listener support to LottieAnimationView and log network failures (#1321)

This changes the default failure behavior for network errors to log instead of crash.
It also gives you the ability to set and clear failure listeners to handle this yourself.
Fixes #1302
2 files changed
tree: f45592d9795ee6bdfd60975c4c379026d901f03c
  1. .github/
  2. .idea/
  3. After Effects Samples/
  4. gifs/
  5. gradle/
  6. lottie/
  7. LottieSample/
  8. .gitignore
  9. .travis.yml
  10. build.gradle
  11. CHANGELOG.md
  12. CODE_OF_CONDUCT.md
  13. credentials.tar.gz
  14. decrypt.sh
  15. deploy_snapshot.sh
  16. DESIGNER_NOTES.md
  17. gcloud_run.sh
  18. gcloud_setup.sh
  19. gradle.properties
  20. gradlew
  21. gradlew.bat
  22. LICENSE
  23. post_pr_comment.js
  24. README.md
  25. RELEASE.md
  26. secrets.tar.enc
  27. settings.gradle
  28. sign.sh
  29. version.sh
README.md

Lottie for Android, iOS, React Native, Web, and Windows

Build Status

Lottie is a mobile library for Android and iOS that parses Adobe After Effects animations exported as json with Bodymovin and renders them natively on mobile!

For the first time, designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand. They say a picture is worth 1,000 words so here are 13,000:

View documentation, FAQ, help, examples, and more at airbnb.io/lottie

Example1

Example2

Example3

Community

Example4

Download

Gradle is the only supported build configuration, so just add the dependency to your project build.gradle file:

dependencies {
  implementation 'com.airbnb.android:lottie:$lottieVersion'
}

The latest Lottie version is: lottieVersion

Lottie 2.8.0 and above only supports projects that have been migrated to androidx. For more information, read Google's migration guide.