2017-10-11 24 views
0

私は現在、Android用AirBnBのLottie libraryで遊んでおり、LottieAnimationView Zオーダーで問題が発生しています。かかわらず、私はRelativeLayoutの上部にLottieAnimationViewを置くかどうか、それは常にレイアウトEX内の他のすべての要素の一番上に表示されます。Lottie Animation Library Zご注文の問題

<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" 
    android:layout_margin="@dimen/spacing_lrg" 
    tools:context="com.myapp.SplashActivity"> 

    <com.airbnb.lottie.LottieAnimationView 
     android:id="@+id/animation_view" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     app:lottie_fileName="test.json"/> 

    <! -- Other Elements that should appear on top of the background animation --> 

</RelativeLayout> 

私も0にLottieAnimationViewの標高を設定しようとしましたしかし、問題の修正には成功していません。誰にでもこれを解決する方法のアイデアがあるのですか、それとも単にライブラリの限界に過ぎないのでしょうか?また、それが限界であれば、何が原因ですか?

答えて

0

コードでlottie fileNameを読み込もうとします。ファイルをxmlでロードしたときにいくつかの問題が発生しました

他のビューには1つの線形を使用でき、linearlayout.bringToFront()を呼び出すことができます