xamarin.forms - 如何在我的 xamarin 表单应用程序中使用 lottie 动画?
问题描述
我已经使用了 nuget 包中的 lottie 动画,但是当应用程序打开时它什么也不显示,我的代码在 xmlns:forms="clr-namespace:Lottie.Forms;assembly=Lottie.Forms" 下面
<forms:AnimationView
x:Name="animationView"
Animation="data.json"
Loop="True"
AutoPlay="True"
HeightRequest="300" WidthRequest="300"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand" />
我从 nuget 包安装了 Com.Airbnb.Xamarin.Forms.Lottie 3.1.3 但它没有显示,请建议....