Load image from url

前端 未结 16 1990
独厮守ぢ
独厮守ぢ 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:43

    try picassso nice and finishes in one statement

    Picasso.with(context)
                    .load(ImageURL)
                    .resize(width,height).into(imageView);
    

    tutorial: https://youtu.be/DxRqxsEPc2s

提交回复
热议问题