package com.joker.fourfun.utils;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;

/**
 * Created by joker on 2016/12/6.
 */

public class GlideUtil {
    public static void setImage(Context context, String imageUrl, ImageView targetView) {
        Glide.with(context)
                .load(imageUrl)
                .diskCacheStrategy(DiskCacheStrategy.ALL)
//                .thumbnail(0.5f)
                .centerCrop()
                .into(targetView);
    }
}

@@ -182,16 +182,68 @@
 trategy;
+%0Aimport com.joker.fourfun.view.GlideCircleTransform;
 %0A%0A/**%0A *
@@ -304,16 +304,48 @@
 eUtil %7B%0A
+    // %E7%A3%81%E7%9B%98%E7%BC%93%E5%AD%98%E5%9B%BE%E7%89%87%E6%89%80%E6%9C%89%E5%A4%A7%E5%B0%8F%EF%BC%8CcenterCrop %E5%A4%A7%E5%B0%8F%0A
     publ
@@ -579,16 +579,16 @@
 l(0.5f)%0A
-
         
@@ -649,11 +649,377 @@
 );%0A    %7D
+%0A%0A    //%E5%9C%86%E5%BD%A2 ImageView%0A    public static void setCirCleImage(Context context, String imageUrl, ImageView targetView) %7B%0A        Glide.with(context)%0A                .load(imageUrl)%0A                .transform(new GlideCircleTransform(context))%0A                .diskCacheStrategy(DiskCacheStrategy.ALL)%0A                .crossFade()%0A                .into(targetView);%0A    %7D
 %0A%7D%0A

add circle imageview operation