
HarmonyOS三方组件:lottie-ohos
Lottie-ohos: Lottie is a mobile library that parses Adobe After Effects animations exported as json and renders them natively on mobile.
Usage Instructions
Declare the lottie animation view in layout as shown below :
For playing animation using json/zip file:
where string is the json or zip file name which needs to be displayed.
For loading animation from URL :
where string is the url path to the json file to be loaded.
Installation tutorial
- For using Lottie module in sample app, modify entry build.gradle as below :
2.For using Lottie in separate application make sure to add lottie.har in entry/libs folder and modify build.gradle as below to add dependencies :
3.For using Lottie from a remote repository in separate application, add the below dependencies:
文章转载自:https://gitee.com/HarmonyOS-tpc/lottie-ohos
