Huu*_*yen 4 .net c# xamarin xamarin.forms
我有一个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>
Run Code Online (Sandbox Code Playgroud)
如果您需要更多信息,请与我们联系。
| 归档时间: |
|
| 查看次数: |
4543 次 |
| 最近记录: |