【发布时间】:2018-09-12 13:41:25
【问题描述】:
我想在只包含一个 LottieAnimationView 的 DialogFragment 中扩展一个布局文件
<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"
/>
我希望 Fragment 出现,播放一次动画,并在动画结束后自动关闭。
我可以访问动画视图
animView = view.FindViewById<LottieAnimationView>(Resource.Id.animViewTest1);
animView.PlayAnimation();
但我找不到使用onAnimationEnd 方法或类似方法的方法。
我发现了这个类似的问题:How to know when lottie animation is completed?
但这并没有帮助我让它在我的情况下发挥作用。
【问题讨论】:
标签: android animation xamarin nuget lottie