1、glide的使用:

添加依赖:

 

  1. compile 'com.github.bumptech.glide:glide:3.7.0'  

调用代码:

 

 

  1. ImageView imageView = (ImageView) findViewById(R.id.my_image_view);  
  2.   
  3. Glide.with(this).load("http://goo.gl/gEgYUd").into(imageView);  

 

 

2、添加OKHttp3集成:

 

  1. compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'  
  2. compile 'com.squareup.okhttp3:okhttp:3.1.2'  

 

 

3、出现的问题

 

  1. You must not call setTag() on a view Glide is targeting   

 

解决方案:把seTag调用改为setTag(key,Object)调用:

 

  1. ImageView.setTag(R.id.ImagViewId,saveObject);  

 

 

参考:http://blog.csdn.NET/kyleceshen/article/details/49806267

https://github.com/bumptech/glide

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2021-05-22
  • 2021-04-18
  • 2021-07-13
  • 2021-12-09
  • 2021-04-28
  • 2021-08-19
猜你喜欢
  • 2021-12-21
  • 2021-05-26
  • 2021-09-15
  • 2022-12-23
  • 2021-11-24
  • 2021-11-06
相关资源
相似解决方案