【发布时间】:2018-07-28 23:57:15
【问题描述】:
我的 Firebase 存储中有 .gif 文件的链接
String gifUrl = "https://firebasestorage.googleapis.com/v0/b/rokitskiydev-a18ca.appspot.com/o/WF%2F10-16-02-Digital-15.gif?alt=media&token=0354f6e6-4292-4911-9302-49281d293a80";
我尝试使用 Picasso 和 Glide。但我只能显示这个 gif 的图像。
GlideApp.with(context).load(gifUrl).into(ImageView);
如果我得到另一个链接,一个例子http://i.imgur.com/1ALnB2s.gif 没关系!
我该怎么做?
【问题讨论】:
-
不要从firebase粘贴整个URL,只需从datasnapshot的getDownloadUrl方法中获取downloadurl(如果您的图像存储在数据库中)
-
@GastónSaillén 此链接返回 getDownloadUrl() (downloadUrl = taskSnapshot.getDownloadUrl().toString();)
-
如果你去firebase存储找到文件,它有另一个url?
-
@GastónSaillén no
标签: android gif android-glide