commit | 1e3f4130977f6e5d1ede8588a79430e84b2bf57b | [log] [tgz] |
---|---|---|
author | Matsuda, Akihit <matsuda104@gmail.com> | Sun Nov 24 10:05:48 2019 +0900 |
committer | Gabriel Peal <gpeal@users.noreply.github.com> | Sat Nov 23 17:05:48 2019 -0800 |
tree | 2b356d27a027349d263147862bf94827a872fc79 | |
parent | a92b460cc4bc73b7fc338b897f0a8f1331d19cc7 [diff] |
Add KeyframesWrapper to improve setProgress() performance (#1426) To improve performance of BaseKeyframeAnimation.getCurrentKeyframe() called by setProgress() of BaseKeyframeAnimation who has only one Keyframe, SingleKeyframeWrapper was implemented with KeyframeWrapper interface. At LottieLogo1.json, processing time of setProgress() was reduced about 70%.
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.