From e7a6728aea008cab5befa5980382370c32974ce5 Mon Sep 17 00:00:00 2001 From: 张钢 <floatgang@163.com> Date: 星期三, 11 九月 2024 14:51:07 +0800 Subject: [PATCH] 修改了百年心愿模块的排版和显示不正确的问题 --- app_base/src/main/java/com/android/app_base/utils/GlideUtil.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/app_base/src/main/java/com/android/app_base/utils/GlideUtil.java b/app_base/src/main/java/com/android/app_base/utils/GlideUtil.java index 55a132c..135ea5d 100644 --- a/app_base/src/main/java/com/android/app_base/utils/GlideUtil.java +++ b/app_base/src/main/java/com/android/app_base/utils/GlideUtil.java @@ -25,8 +25,13 @@ * @param imageView ImageView 瀵硅薄 */ public static void loadImage(String imageUrl, ImageView imageView) { + RequestOptions options = new RequestOptions() + .placeholder(com.luck.picture.lib.R.drawable.ps_image_placeholder) + .error(com.luck.picture.lib.R.drawable.ps_image_placeholder) + .diskCacheStrategy(DiskCacheStrategy.ALL).dontAnimate(); Glide.with(BaseApplication.getInstance()) .load(imageUrl) + .apply(options) .into(imageView); } //鍦嗗舰 -- Gitblit v1.9.1