Fix: Tapping on seekBar would be ignored (#760)

-Change the progress by dragging the finger was working. However, tapping on the progress bar to change the progress was not.
I merged the "progress in 1..4" condition with the checking "seekBar.isPressed", so it will be ignored when user is not pressing it.
Also, in the animationView.addAnimatorUpdateListener, I changed the .toInt() into a .roundToInt(), because toInt() was always giving the current_number -= -1, creating a race condition that would set the seekBar to 0.
I tested my solution on a lot of the Showcase examples and I'm confident there is no regression.
1 file changed
tree: 411a5fb7a56b359b051005cebd36d1738ea7a07a
  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. credentials.tar.gz
  13. DESIGNER_NOTES.md
  14. gcloud_run.sh
  15. gcloud_setup.sh
  16. gradle.properties
  17. gradlew
  18. gradlew.bat
  19. LICENSE
  20. post_pr_comment.js
  21. README.md
  22. settings.gradle
  23. version.sh
README.md

Lottie for Android, iOS, React Native, and Web

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:2.5.4'
}