https://www.cnblogs.com/plokmju/p/8036668.html,很详细
简单的使用只需要把动画导出成 的JSON 文件放到assets文件夹下,xml直接使用即可
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<com.airbnb.lottie.LottieAnimationView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:lottie_fileName="splash.json" //动画json文件名
app:lottie_loop="false"
app:lottie_autoPlay="true" />
</FrameLayout>
</layout>

博客介绍动画简单使用方法,只需将动画导出成JSON文件放到assets文件夹,在xml中直接使用,还给出相关详细内容链接https://www.cnblogs.com/plokmju/p/8036668.html 。
2150

被折叠的 条评论
为什么被折叠?



