框架整理系列九(图片加载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的拓展(高斯模糊、加载监听、圆角图片)

福利


框架整理系列九(图片加载glide)_第1张图片

你可能感兴趣的:(框架整理系列九(图片加载glide))