commit | 91c181a5e3d898648e7e7dabb8162481c616e9ea | [log] [tgz] |
---|---|---|
author | Alex Lockwood <alexjlockwood@gmail.com> | Fri Jan 05 20:08:11 2018 -0500 |
committer | Gabriel Peal <gpeal@users.noreply.github.com> | Fri Jan 05 17:08:11 2018 -0800 |
tree | b1fce06e80da371def71ddb85fb990f63b7a00c1 | |
parent | 09fc30d7f1aa1be2ecf4d66af3e51bf5ad7ed484 [diff] |
Make lottie drawable implement animatable (#580) This pull request updates LottieDrawable to implement the Animatable interface. See #579. The implementation behaves the same as it does for AnimatedVectorDrawables: https://github.com/aosp-mirror/platform_frameworks_base/blob/oreo-mr1-release/graphics/java/android/graphics/drawable/AnimatedVectorDrawable.java#L893-L945 TLDR: * start() calls playAnimation() * stop() calls animator.end() * isRunning() calls isAnimating()
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 { compile 'com.airbnb.android:lottie:2.5.0-beta1' }