Load image from url

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

    Try this add picasso lib jar file

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

提交回复
热议问题