Picasso Load Image into Target

前端 未结 2 1933
忘掉有多难
忘掉有多难 2020-12-17 03:17

I\'m using Picasso to download various images. Usually, I just display these in an ImageView but in this situation, I want to hold a strong reference to them so

2条回答
  •  忘掉有多难
    2020-12-17 04:03

    Its because Picasso only keeps a weak reference to the Target object.

    If you want to have a strong reference I'd recommend tagging the Target to the View.
    Here is a solution for your problem.

提交回复
热议问题