commit | 3a4eacdac8ea921ed9b32d0e5dab18cf4b6d9d2a | [log] [tgz] |
---|---|---|
author | Gabriel Peal <gpeal@users.noreply.github.com> | Mon Feb 18 22:17:43 2019 -0800 |
committer | GitHub <noreply@github.com> | Mon Feb 18 22:17:43 2019 -0800 |
tree | 0da8631030c9821c96e72fc5128eef4045ba28cc | |
parent | deb6e2208721902d6057ed88f18361e0c77eb6d8 [diff] |
Prevent setMaxFrame from truncating the last frame. (#1126) Lottie should render the max frame. However, setting the max frame truncated it to an int so the frame itself would never render. I can confirm that this fixes #1034. Calling `getProgress()` from `onAninmationEnd()` yielded 0.996 before and 1.0 now. The animation attached in #1034 also fully disappears by the end of the animation.
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:$lottieVersion' }
The latest Lottie version is:
Lottie 2.8.0 and above only supports projects that have been migrated to androidx. For more information, read Google's migration guide.