Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display gif image in Xamarin form?

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!

like image 299
Huu Bao Nguyen Avatar asked Dec 17 '22 21:12

Huu Bao Nguyen


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.

like image 165
Nirmal Subedi Avatar answered Jan 03 '23 01:01

Nirmal Subedi