2017-04-03 74 views
1

我正在使用lottie文件進行動畫製作。它不按預期加載。它應該是這樣的http://www.lottiefiles.com/48-progress-barLottie動畫未按預期工作

現狀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> 

任何想法,我做錯了什麼?

+0

@Henry我添加了我的佈局 –

回答

1

你在做什麼沒有錯。洛蒂非常簡單易用。不幸的是,progress_bar.json存在問題。

試着與設計師取得聯繫,也許他可以解決這個問題。