【问题标题】:Gif image in Xamarin.FormsXamarin.Forms 中的 Gif 图像
【发布时间】:2016-09-27 16:30:41
【问题描述】:

我是 Xamarin 的新手,我必须在我的跨平台应用程序中添加一个 GIF 图像,我已经阅读了 GifImageView (https://github.com/jamesmontemagno/GifImageView-Xamarin.Android),我知道我必须将它与自定义渲染器一起使用,但我没有不知道如何实现。

【问题讨论】:

标签: c# android xamarin xamarin.forms


【解决方案1】:

如果你想用更少的配置轻松实现你的 gif,我建议你使用 Glide 库,现在通过 Nuget 支持它

https://www.nuget.org/packages/Glide.Xamarin/

如何使用

Glide.With(context).Load("GifUrl")
                     .Placeholder(Resource.Drawable.placeholder)
                     .DiskCacheStrategy(DiskCacheStrategy.Source)
                     .Into(viewHolder.propertyImageView);

资源https://github.com/beraybentesen/glide-xamarin-android

【讨论】:

    猜你喜欢
    • 2017-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-04
    • 2018-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多