首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >乐天动画不像预期的那样工作

乐天动画不像预期的那样工作
EN

Stack Overflow用户
提问于 2017-04-03 06:12:21
回答 2查看 4.4K关注 0票数 4

我正在使用Lottie文件作为动画用途。它没有像预期的那样加载。应该是这样的http://www.lottiefiles.com/48-progress-bar

现状:https://www.dropbox.com/s/xgvj9pss2cauv37/device-2017-04-03-113913.mp4?dl=0

代码语言:javascript
复制
<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>

知道我做错了什么吗?

EN

Stack Overflow用户

发布于 2020-05-11 20:09:39

仅仅改变依赖对我来说是有效的。

代码语言:javascript
复制
implementation 'com.airbnb.android:lottie:2.8.0'

代码语言:javascript
复制
implementation 'com.airbnb.android:lottie:3.0.7'
票数 -1
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43177613

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档