我有一个 gif 图像,我想在屏幕应用程序上显示它。我使用库 FFImageLoading 加载 gif 图像,但我无法在 xamarin.forms 3.1 中显示它。 不知道其他库是否支持加载gif图片? 请帮我! 谢谢!
最佳答案
FFImageLoading.Svg.Forms 支持 gif 图片。我在使用 FFImageLoading 显示 gif 时没有问题。
<ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MyApp.AnimationView"
xmlns:ffimageloading="clr-namespace:FFImageLoading.Svg.Forms;assembly=FFImageLoading.Svg.Forms">
<ffimageloading:SvgCachedImage HeightRequest="30" HorizontalOptions="FillAndExpand" VerticalOptions="Center" Aspect="AspectFill" x:Name="imageWave" Source="Wave.gif" Margin="0"/>
</ContentView>
如果您需要更多信息,请告诉我。
关于c# - 如何以Xamarin形式显示gif图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52310079/