框架整理系列九(图片加载glide)

1. 引用
model.gradle

    compile 'com.github.bumptech.glide:glide:+'
    compile 'jp.wasabeef:glide-transformations:2.0.0'

** 2. 调用**

       Glide.with(this) //加载图片
               .load(AppUtil.server_imge_url +video.getVideopicurl())
               .error(R.mipmap.dianying)
               .diskCacheStrategy(DiskCacheStrategy.ALL)
               .animate(R.anim.item_alpha_in)
               .thumbnail(0.1f)
               .override(220, 340)
               .bitmapTransform(new RoundedCornersTransformation(this, 10, 0, RoundedCornersTransformation.CornerType.ALL))
               .into(mImageViewImageView);

** 3.参考教程 **

https://github.com/bumptech/glide

http://www.jianshu.com/p/89567c934008

http://www.jianshu.com/p/8bf041b2c5be

http://www.mobile-open.com/2015/38494.html
http://www.jianshu.com/p/8d0fb78659a9

http://www.jianshu.com/p/4107565955e4 Android 关于Glide的拓展(高斯模糊、加载监听、圆角图片)

福利


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容