You cannot start a load for a destroyed activity in relativelayout image using glide

后端 未结 10 952
悲&欢浪女
悲&欢浪女 2020-12-02 19:33

I am using relativelayout to set an image.Why I hadn\'t using imageview means, inside relativelayout image, I am setting icons.

I dont know what is the issue exactly

10条回答
  •  被撕碎了的回忆
    2020-12-02 20:21

    Setup Glide with a parameter which has the correct lifecycle. For example: use Glide.with(this) instead of Glide.with(getContext()) in a custom view.

提交回复
热议问题