How to display gif image in Xamarin form?

Viewed 10843

I have a gif image and I want to display it on screen app. I use library FFImageLoading to load gif image, but I can't display it in xamarin.forms 3.1. I don't know whether other library support load gif image? Please help me! Thanks!

1 Answers

FFImageLoading.Svg.Forms supports gif images. I'm having no problem displaying the gif using FFImageLoading.

<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>

Let me know if you need more information.

Related