我正在使用Lottie文件作为动画用途。它没有像预期的那样加载。应该是这样的http://www.lottiefiles.com/48-progress-bar
现状:https://www.dropbox.com/s/xgvj9pss2cauv37/device-2017-04-03-113913.mp4?dl=0
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.icici.iciciappathon.checkout.PaymentSucessActivity"
android:background="@color/sky_blue">
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/animation_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:lottie_fileName="progress_bar.json"
app:lottie_loop="true"
app:lottie_autoPlay="true"
android:layout_centerInParent="true"/>
</RelativeLayout>知道我做错了什么吗?
发布于 2020-05-11 20:09:39
仅仅改变依赖对我来说是有效的。
implementation 'com.airbnb.android:lottie:2.8.0'至
implementation 'com.airbnb.android:lottie:3.0.7'https://stackoverflow.com/questions/43177613
复制相似问题