picasso: how to cancel all image requests made in an adapter

前端 未结 3 1986
情歌与酒
情歌与酒 2021-02-13 20:02

as usual we use an adapter to populate a listView. in the adapter we use picasso to load the images. i see that as rows are recycled when loading an image into an target (imageV

3条回答
  •  盖世英雄少女心
    2021-02-13 21:07

    You can also use RequestCreator#tag(Object) on the requests made by your fragment/activity, then use Picasso#cancelTag(Object) to cancel all of them.

提交回复
热议问题