ListView异步加载图片

上传者: dmk877 | 上传时间: 2015-10-28 00:00:00 | 文件大小: 993KB | 文件类型: rar
①ListView异步加载图片的方式 ②给ImageView设置Tag,解决图片覆盖问题 ③采用LruCache缓存已经加载过的图片 ④当ListView滚动时不加载图片,滚动停止时才加载图片,从而达到ListView滑动很流畅的效果 ⑤当ListView加载图片时只加载当前屏幕内可见的条目

文件下载

资源详情

[{"title":"( 58 个子文件 993KB ) ListView异步加载图片","children":[{"title":"AsyncTaskPractice","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 445.38KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AsyncTaskPractice.apk <span style='color:#111;'> 194.41KB </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-25ef9b001f3731d222f5184b62c8056c.jar <span style='color:#111;'> 146.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"asynctaskpractice","children":[{"title":"MainActivity.class <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 367B </span>","children":null,"spread":false},{"title":"NewsAdapter$ViewHolder.class <span style='color:#111;'> 671B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 555B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 440B </span>","children":null,"spread":false},{"title":"ImageLoader.class <span style='color:#111;'> 5.84KB </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 494B </span>","children":null,"spread":false},{"title":"ImageLoader$2.class <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"NewsAdapter.class <span style='color:#111;'> 4.10KB </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 373B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 421B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 783B </span>","children":null,"spread":false},{"title":"ImageLoader$NewsAsyncTask.class <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"MainActivity$NewsAsyncTask.class <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 505B </span>","children":null,"spread":false},{"title":"ImageLoader$3.class <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"ImageLoader$1.class <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 464B </span>","children":null,"spread":false},{"title":"NewsBean.class <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 40.67KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 964B </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 332B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 261B </span>","children":null,"spread":false}],"spread":true},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 389B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 695B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 218B </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'> 275B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 201B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"item_imooc.xml <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 429B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"asynctaskpractice","children":[{"title":"BuildConfig.java <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 598B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"asynctaskpractice","children":[{"title":"NewsAdapter.java <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"NewsBean.java <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"ImageLoader.java <span style='color:#111;'> 4.93KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 853B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 964B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 376.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"lint.xml <span style='color:#111;'> 53B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • 春华-秋实 :
    学习一下,感觉文章洗的不错。
    2017-05-26
  • Mr_zhenghan :
    非常不错,文章写得也好,现在配合代码看一下。
    2016-09-21
  • wh_991 :
    非常不错!
    2016-05-10
  • 明明听见刚刚有人叫我大叔 :
    感謝LZ收集,用起來挺方便.
    2016-03-15
  • wsrspirit :
    代码不错哈
    2016-03-10

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明