image-loading

Invalidate cache in Picasso

纵然是瞬间 提交于 2019-11-26 00:28:24
问题 I load an image from disk using Picasso, e.g., Picasso.with(ctx).load(new File(\"/path/to/image\")).into(imageView) , but whenever I save a new image in that file, and refresh my ImageView , Picasso still has the bitmap cached. Is it possible to invalidate the cache in Picasso? 回答1: In the recent versions of Picasso, there is a new method for invalidate, without any workarounds, so I think that custom PicassoTools class mentioned earlier, is now obsolete in this case Picasso.with(getActivity(