Image not showing on image view

后端 未结 3 1458
猫巷女王i
猫巷女王i 2021-01-27 22:55

I am trying to set image on imageview but image is not show.

I am reading image url from json data and then trying to set it on ImageView but my image is not visi

3条回答
  •  一整个雨季
    2021-01-27 23:54

    It seems you are downloading the image from UI thread. this will block the UI thread and will give you not responding error. as an easy way, you can use a library like Universal Image Loader

    Universal Image Loader - GitHub

    this will manage the image loading for you and avoid problems like incorrect urls, Out Of Memory error.

提交回复
热议问题