commit | b5fbe0f5877132bae66316b2d4e80b7bf73d08c9 | [log] [tgz] |
---|---|---|
author | Denis Bezrukov <bezrukov@mercurydevelopment.com> | Wed Dec 11 06:47:33 2019 +0400 |
committer | Gabriel Peal <gpeal@users.noreply.github.com> | Tue Dec 10 21:47:33 2019 -0500 |
tree | 41fdb514ad6deded7b27f2e8967a6c888361dbfc | |
parent | a974e2d8a0504da48f135a222189b3fcf73d1071 [diff] |
Fix opacity used in save layer (#1458) contentPaint.alpha is changed multiple times without reset it back. This will lead to Utils.saveLayerCompat call with incorrect alpha. In our case it should be 255, but if last mask was applied with 0 alpha (e.g. in applyAddMask), next draw will be transparent, because layer will be saved with 0 alpha. Fix is to set proper alpha before saving layer.
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:
Lottie is maintained and improved on nights and weekends. If you use Lottie in your app, please consider sponsoring it to help ensure that we can continue to improve the project we love. Click the sponsor button above to learn more
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.