How do I implement this image view in an async task?

后端 未结 3 483
故里飘歌
故里飘歌 2021-01-29 05:33

I have an url passed to an activity and I am trying to show the image from the url full screen, however it throws a main network thread exception.

From what I can find

3条回答
  •  伪装坚强ぢ
    2021-01-29 06:04

    Using Picasso after initializing yourImageView with findViewById();

    Picasso.with(context).load(url).into(yourImageView)
    

提交回复
热议问题