commit | 24d005475621588014eb1d7676def6dd62ee0e96 | [log] [tgz] |
---|---|---|
author | Bernardo Ferrari <bernaferrari2@gmail.com> | Fri May 11 21:09:34 2018 -0300 |
committer | Gabriel Peal <gpeal@users.noreply.github.com> | Sat May 12 02:09:34 2018 +0200 |
tree | 411a5fb7a56b359b051005cebd36d1738ea7a07a | |
parent | d88ff2aeb8fd012186820150a8a1d60730721832 [diff] |
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.
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:
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' }