1、glide的使用:
添加依赖:
compile 'com.github.bumptech.glide:glide:3.7.0'调用代码:
ImageView imageView = (ImageView) findViewById(R.id.my_image_view);
Glide.with(this).load("http://goo.gl/gEgYUd").into(imageView);2、添加OKHttp3集成:
compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'
compile 'com.squareup.okhttp3:okhttp:3.1.2'
You must not call setTag() on a view Glide is targeting
解决方案:把seTag调用改为setTag(key,Object)调用:
ImageView.setTag(R.id.ImagViewId,saveObject);
参考:http://blog.csdn.net/kyleceshen/article/details/49806267
https://github.com/bumptech/glide
本文介绍如何在Android应用中使用Glide进行图片加载,并集成OKHttp3以提高网络请求效率。同时,针对Glide使用过程中遇到的特定问题提供了解决方案。

2万+

被折叠的 条评论
为什么被折叠?



