I want to inflate a Layout-File in my DialogFragment which only holds one LottieAnimationView
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/animViewTest1"
android:layout_height="100dp"
android:layout_width="100dp"
app:lottie_fileName="json_Saved.json"
app:lottie_loop="false"
app:lottie_autoPlay="false"
/>
I want the Fragment to show up, play the animation once, and automatically close, after the animation is finished.
I can access the AnimView
animView = view.FindViewById<LottieAnimationView>(Resource.Id.animViewTest1);
animView.PlayAnimation();
but i can't find a way to get to the onAnimationEnd
Method or something similar.
I found this similar question: How to know when lottie animation is completed?
But it does not helped me to make it work in my case.