commit | 451181551dbe8029856d946e1e6efc17dafbfb94 | [log] [tgz] |
---|---|---|
author | podarsmarty <podarsmarty@users.noreply.github.com> | Thu Apr 25 08:50:35 2019 -0700 |
committer | Gabriel Peal <gpeal@users.noreply.github.com> | Thu Apr 25 08:50:35 2019 -0700 |
tree | 94d1de43baef2df6c87be8dfa9da454cb7f198f5 | |
parent | 423c336e8c30e063b0f8f233820f8ec8eaceafaa [diff] |
Have software rendering fallback on hardware acceleration when too large (#1190) In cases where LottieAnimationView is large and software rendering is used, Android may not be able to generate a bitmap large enough which causes nothing to be shown. Rather than have this happen, fall back on hardware acceleration which is supported > api 11. Potentially taking a perf hit and displaying is better than a blank screen and not displaying at all. Encountered this where upon rotation on a tablet, the view became big enough that generation of the bitmap failed.
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.