|
|
|
|
@ -35,12 +35,12 @@ public class ImgUtil { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void load(String url, CustomTarget<Bitmap> target) { |
|
|
|
|
if (!TextUtils.isEmpty(url)) Glide.with(App.get()).asBitmap().load(getUrl(url)).skipMemoryCache(true).dontAnimate().signature(getSignature(url)).into(target); |
|
|
|
|
if (!TextUtils.isEmpty(url)) Glide.with(App.get()).asBitmap().load(getUrl(url)).override(ResUtil.getScreenWidth(), ResUtil.getScreenHeight()).skipMemoryCache(true).dontAnimate().signature(getSignature(url)).into(target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void load(String url, int error, CustomTarget<Drawable> target) { |
|
|
|
|
if (TextUtils.isEmpty(url)) target.onLoadFailed(ResUtil.getDrawable(error)); |
|
|
|
|
else Glide.with(App.get()).asDrawable().load(getUrl(url)).error(error).skipMemoryCache(true).dontAnimate().signature(getSignature(url)).into(target); |
|
|
|
|
else Glide.with(App.get()).asDrawable().load(getUrl(url)).override(ResUtil.getScreenWidth(), ResUtil.getScreenHeight()).error(error).skipMemoryCache(true).dontAnimate().signature(getSignature(url)).into(target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void rect(String text, String url, ImageView view) { |
|
|
|
|
|