commit | a6d4f34c10c14c7c87c91cd851a997f915984b7f | [log] [tgz] |
---|---|---|
author | Gabriel Peal <gpeal@users.noreply.github.com> | Sat Feb 02 16:37:36 2019 -0800 |
committer | GitHub <noreply@github.com> | Sat Feb 02 16:37:36 2019 -0800 |
tree | 4d1736c1865633f3387f65217b7f6bcd9827bdb2 | |
parent | 204336f3b58ec971bd1b81b2abae6ff961a9f5c9 [diff] |
Pause Lottie when visibility changes (#1098) onAttachedToWindow and onDetachedFromWindow aren't sufficient for LottieAnimationView to properly pause and resume. We must do the same from onVisibilityChanged as well or we risk Lottie animating when the app is in the background. Fixes #987 Thanks @florianPOLARSTEPS
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.