How to make Volley NetworkImageView worke offline

前端 未结 6 2195
悲&欢浪女
悲&欢浪女 2021-02-10 18:04

I use Volley NetworkImageView to download images from internet and show in my listview. Now I want to make Volley NetworkImageView show sa

6条回答
  •  萌比男神i
    2021-02-10 18:47

    I prefer to use Volley/retrofit with Android-Universal-Image-Loader /Picasso, picture loader libs have done a great job in loading and caching images indeed.

    They handle everything with a single line of code by default:

    Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);
    

    Also you can animate, resize your images and add placeholder while they loading.

提交回复
热议问题