Je suis actuellement en train de jouer avec Lottie library de l'AirBnB pour Android, et j'ai des problèmes avec LottieAnimationView
Z de commande. Peu importe si je place le LottieAnimationView au sommet de la RelativeLayout
, il apparaît toujours au-dessus de tous les autres éléments de la mise en page ex:Lottie Animation Bibliothèque Z Numéro de commande
<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>
J'ai aussi essayé de placer l'élévation de la LottieAnimationView
-0 , mais sans succès à résoudre le problème. Est-ce que quelqu'un a une idée de comment résoudre ce problème, ou si c'est juste une limitation de la bibliothèque? Aussi, si c'est une limitation, qu'est-ce qui le cause?