Force re-downloading image with Picasso

冷暖自知 提交于 2019-12-05 12:30:15
Picasso.with(context)
    .load(url)
    .memoryPolicy(MemoryPolicy.NO_CACHE)
    .networkPolicy(NetworkPolicy.NO_CACHE)
    .fit()
    .centerCrop()
    .into(imageView);

Each NO_CACHE skips the cache on the way down to load the resource. The cached version will be updated by the new content.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!