commit | f5517cd29b8ee5b3c60a7e27d97f4e8ee5088027 | [log] [tgz] |
---|---|---|
author | Marshall Weir <marshall.weir@gmail.com> | Thu Oct 01 22:24:02 2020 -0400 |
committer | GitHub <noreply@github.com> | Thu Oct 01 19:24:02 2020 -0700 |
tree | 4f752d9d55d22b004f9d9288d7a310e20810677c | |
parent | 06274f494053255abf62577a84cf31cc57a00c4c [diff] |
Fix scaling and tracking for dynamic text (#1635) Close #1183. Close #1310. This has a couple of related bugfixes. Fix the scale/positioning of the text relative to the parent (from PR #1583, thanks @pikaMouse) Include text tracking values in the line width used for text alignment Scale the text tracking values based on the font size rather than the parent size (parent size adjustment is already handled when we're calculating tracking values) Include all bytes for multibyte characters when calculating canvas offsets for characters.
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.