commit | 423c336e8c30e063b0f8f233820f8ec8eaceafaa | [log] [tgz] |
---|---|---|
author | Antonin Fouques <totofouques@gmail.com> | Wed Apr 17 20:56:02 2019 +0200 |
committer | Gabriel Peal <gpeal@users.noreply.github.com> | Wed Apr 17 11:56:02 2019 -0700 |
tree | c0903d09a47d46db9111ba7d956e70c99060380f | |
parent | a483b7695e2a9ec5e8ea4b50b1223f806e890ca5 [diff] |
Respect disabled system animations (#1187) If systemAnimationScale == 0, the lottie animation will play then immediately jump to the last frame, or only jump to the last frame if it is a loop animation. This solution handles if the dev move the animation at some percentage, change first or last frame or play the animation in reverse. Really useful for testing purpose in order to not overload the main thread Unittest are OK, I couldn't start the uiTest as it require the AWS key. I couldn't add unittest as it obviously doesn't try to start the animations in it Fixes #1129
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.