29 lines
1005 B
Java
29 lines
1005 B
Java
package com.ubt.jimu.utils;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.widget.ImageView;
|
|
import com.bumptech.glide.Glide;
|
|
import com.bumptech.glide.RequestBuilder;
|
|
import com.bumptech.glide.load.engine.DiskCacheStrategy;
|
|
import com.bumptech.glide.request.RequestOptions;
|
|
import com.ubt.jimu.R;
|
|
import com.youth.banner.loader.ImageLoader;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class GlideImageLoaderUtils extends ImageLoader {
|
|
private Context mContext;
|
|
|
|
public GlideImageLoaderUtils(Context context) {
|
|
this.mContext = context;
|
|
}
|
|
|
|
@Override // com.youth.banner.loader.ImageLoaderInterface
|
|
public void displayImage(Context context, Object obj, ImageView imageView) {
|
|
RequestBuilder<Drawable> a = Glide.e(context.getApplicationContext()).a(obj);
|
|
a.a(new RequestOptions().a(true).a(DiskCacheStrategy.a).b(R.drawable.community_img).a(R.drawable.community_img).b());
|
|
a.a(0.1f);
|
|
a.a(imageView);
|
|
}
|
|
}
|