Load image from url

前端 未结 16 2010
独厮守ぢ
独厮守ぢ 2020-11-22 05:12

I have an image URL. I want to display an image from this URL in an ImageView but I am unable to do that.

How can this be achieved?

16条回答
  •  悲哀的现实
    2020-11-22 05:25

    To me, Fresco is the best among the other libraries.

    Just setup Fresco and then simply set the imageURI like this:

    draweeView.setImageURI(uri);
    

    Check out this answer explaining some of Fresco benefits.

提交回复
热议问题