今天无意间看到一个非常好的图片加载库,自己也动手试了,觉得优化方面做得挺好的,最别的是还支持动画,
,太好了!下面就把它的使用方法记下来,以便日后自己再遇到,还可以来看看嘛。。,对于单个的图片是

ImageView imageView = (ImageView) findViewById(R.id.my_image_view);
Glide.with(this).load("图片的链接").into(imageView);//此处还有别的用法
//在list列表中的使用方法为
@Override public View getView(int position, View recycled, ViewGroup container) { final ImageView myImageView; if (recycled == null) { myImageView = (ImageView) inflater.inflate(R.layout.my_image_view, container, false); } else { myImageView = (ImageView) recycled; } String url = myUrls.get(position); Glide.with(myFragment) .load(url) .centerCrop() .placeholder(R.drawable.loading_spinner) .crossFade() .into(myImageView); return myImageView; }//在使用的过程中只需要把包add进去即可