commit | 036224ff7116c870eefe20397f9caf17ff4f8b23 | [log] [tgz] |
---|---|---|
author | Gabriel Peal <gpeal@users.noreply.github.com> | Sun Sep 01 13:21:40 2019 -0400 |
committer | GitHub <noreply@github.com> | Sun Sep 01 13:21:40 2019 -0400 |
tree | c91753110d636c0ec6fd42c36f8295925da6bd30 | |
parent | cbd3d55ba78c11ec550792e8ca64ed51bb60112d [diff] |
Fixed render mode (#1377) This change (https://github.com/airbnb/lottie-android/pull/1190) was supposed to revert to software rendering when the device can't allocate a hardware buffer large enough for the animation. However, this would also trigger before a composition loads and the view was set to wrap_content. The width and heigh would be 0 which would cause Android to noop the drawing cache. However, the previous logic here would think that the drawing cache failed to allocate because it was too large. I also added some systrace markers and added a default animation view to the issue repro module. Fixes #1374
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.