文件名称:Android异步多线程加载图片
文件大小:53KB
文件格式:JAR
更新时间:2016-10-12 04:57:01
android 异步加载图片 多线程下载
how to use my jar to download images Demo,just use about 4 line code to compete download image fastest and your application will run smoothly // download image in normal not fit Adapter Mode // step one : initImageLoader(cacheDir,R.drawable.alert_dark_frame); // step two bindImage(key,url,imageView,extra); // download images in other way fit Adapter Mode (BaseAdapter,ViewPagerAdapter) // step one redefine your adapter which texteds ImageLoadAdapter or ImageLoadViewPageAdapter,here we named it TestImageLoadAdapter TestImageLoadAdapter adapter = new TestImageLoadAdapter(this); // step thiree add this adapter to Activity Life Cycle addLifeCycleListener(adapter); // step three in getView(int position, View view, ViewGroup root) within Adapter call method bindImage(key,url,imageView,extra) // to start load image if you needs,see also like bindImage(key,url,imageView,extra); // and the last you must call static method stopLoader in ImageLoader to stop load image before you quit or cancel your application ImageLoader.stopLoader();