From 212b8185c873f2f12c14932f6d20c47aaef017b6 Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Sun, 21 Dec 2025 19:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=99=BD=E8=89=B2=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=B1=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- powerbell/build.properties | 4 ++-- .../winboll/studio/powerbell/views/BackgroundView.java | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/powerbell/build.properties b/powerbell/build.properties index b9de522..a9b813a 100644 --- a/powerbell/build.properties +++ b/powerbell/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Sun Dec 21 17:57:40 HKT 2025 +#Sun Dec 21 11:07:38 GMT 2025 stageCount=17 libraryProject= baseVersion=15.14 publishVersion=15.14.16 -buildCount=0 +buildCount=2 baseBetaVersion=15.14.17 diff --git a/powerbell/src/main/java/cc/winboll/studio/powerbell/views/BackgroundView.java b/powerbell/src/main/java/cc/winboll/studio/powerbell/views/BackgroundView.java index 016ebc9..d5b7780 100644 --- a/powerbell/src/main/java/cc/winboll/studio/powerbell/views/BackgroundView.java +++ b/powerbell/src/main/java/cc/winboll/studio/powerbell/views/BackgroundView.java @@ -149,7 +149,7 @@ public class BackgroundView extends RelativeLayout { return; } - mIvBackground.setVisibility(View.GONE); + //mIvBackground.setVisibility(View.GONE); // ======================== 新增:路径判断逻辑 ======================== // 1. 路径未变化:直接使用缓存 @@ -161,7 +161,6 @@ public class BackgroundView extends RelativeLayout { mImageAspectRatio = (float) cachedBitmap.getWidth() / cachedBitmap.getHeight(); mIvBackground.setImageBitmap(cachedBitmap); adjustImageViewSize(); - mIvBackground.setVisibility(View.VISIBLE); return; } else { // 缓存Bitmap为空或已回收,提示并加载透明背景 @@ -200,7 +199,6 @@ public class BackgroundView extends RelativeLayout { mIvBackground.setImageDrawable(new BitmapDrawable(mContext.getResources(), bitmap)); adjustImageViewSize(); - mIvBackground.setVisibility(View.VISIBLE); LogUtils.d(TAG, "=== loadImage 完成 ==="); } @@ -271,7 +269,7 @@ public class BackgroundView extends RelativeLayout { params.height = ivHeight; mIvBackground.setLayoutParams(params); mIvBackground.setScaleType(ScaleType.FIT_CENTER); - mIvBackground.setVisibility(View.VISIBLE); + //mIvBackground.setVisibility(View.VISIBLE); } } @@ -281,14 +279,14 @@ public class BackgroundView extends RelativeLayout { mImageAspectRatio = 1.0f; // 清空缓存路径记录 mCurrentCachedPath = ""; - mIvBackground.setVisibility(View.GONE); + //mIvBackground.setVisibility(View.GONE); } // ====================================== 重写方法 ====================================== @Override protected void onSizeChanged(int w, int h, int oldw, int oldh) { super.onSizeChanged(w, h, oldw, oldh); - adjustImageViewSize(); // 尺寸变化时重新调整 + //adjustImageViewSize(); // 尺寸变化时重新调整 } }