GlideAndroid 图片加载和缓存库
Glide 是一个 Android 上的图片加载和缓存库,其目的是实现平滑的图片列表滚动效果。
示例代码:
// For a simple view: @Override public void onCreate(Bundle savedInstanceState) { ... ImageView imageView = (ImageView) findViewById(R.id.my_image_view); Glide.with(this).load("http://goo.gl/h8qOq7").into(imageView); } // For a 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; }
评论
GDRSImageCacheiOS 图片缓存库
GDRSImageCache是iOS一个非常小型的图片缓存和更改图片大小的开发包。给定一个URL后该库会通过后台线程获取图片并在内存中缓存。使用方法:UIImageView *anImageView
GDRSImageCacheiOS 图片缓存库
0
KingfisheriOS 图片缓存库
Kingfisher(中文名:翠鸟)是一个纯Swift实现的异步下载和缓存图片的库,可以帮助简单地实现像是用户头像或者tableview里面的图片的下载和缓存,以提高app速度和帮助开发者节省时间。要
KingfisheriOS 图片缓存库
0
Universal ImageLoaderAndroid 图片缓存库
UniversalImageLoader是最早开源的Android图片缓存库,强大的缓存机制。功能特点:支持多线程加载图片(同步或者异步加载)具有很高的定制性每一张图片都有很多备用资源(原始图片、内存
Universal ImageLoaderAndroid 图片缓存库
0
DotC_ImageManagerIOS 高性能图片缓存库
DotCImageManager是一个高性能的图片缓存库采用游戏开发中的资源管理策略:一份资源只存在一份内存实例,在适当的时候进行自动资源回收支持内存缓存,提供最大内存限制,采用LRU策略进行内存自动
DotC_ImageManagerIOS 高性能图片缓存库
0