【发布时间】:2017-06-01 11:06:57
【问题描述】:
我正在开发一个应用程序,我需要首先从 Firebase 检索所有图像,然后以 5 秒的间隔一张一张地显示在图像视图中。大多数时候图像将保持不变,所以我想要缓存这些图像,如果用户离线,则使用缓存的图像并在 imageview 中显示。 但问题是我只得到了毕加索库的以下代码,其中图像直接显示在图像视图上
Picasso.with(RetreivingImageFirebase.this)
.load("https://firebasestorage.googleapis.com/v0/b/yavatmalindicatorserver.appspot.com/o/Photos%2F22268?alt=media&token=a71e00eb-c453-4803-80d1-9d769037ab46")
.fit()
.centerCrop()
.into(mImageView);
我需要先保存所有图像,然后一张一张地显示。我已经搜索了有关堆栈溢出的类似问题,但没有一个显示正确的方法。请帮忙
【问题讨论】:
标签: android caching firebase picasso firebase-storage