Android--图片加载处理(内存溢出和三级缓存)
版权声明:本文为博主原创文章,转载请标明出处。 https://blog.csdn.net/chaoyu168/article/details/78052920 最简单的解决办法,用现成的框架,推荐glide和picasso 一、glide下载地址:https://github.com/bumptech/glide 用法:在build.gradle中加入: repositories { mavenCentral() maven { url 'https://maven.google.com' } } dependencies { compile 'com.github.bumptech.glide:glide:4.1.1' annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1' } 使用: ImageView imageView = (ImageView) findViewById(R.id.my_image_view); Glide.with(this).load("http://goo.gl/gEgYUd").i...