From 7145bff552865af3babe95f6738ff0e7172c2cea Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Wed, 10 Dec 2025 17:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=97=B6=E5=87=BA=E7=8E=B0=E7=9A=84=E7=94=BB=E9=9D=A2?= =?UTF-8?q?=E6=8A=96=E5=8A=A8=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- powerbell/build.properties | 4 ++-- .../cc/winboll/studio/powerbell/views/BackgroundView.java | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/powerbell/build.properties b/powerbell/build.properties index 8846c17..730fb5f 100644 --- a/powerbell/build.properties +++ b/powerbell/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Wed Dec 10 17:43:17 HKT 2025 +#Wed Dec 10 09:49:24 GMT 2025 stageCount=6 libraryProject= baseVersion=15.12 publishVersion=15.12.5 -buildCount=0 +buildCount=1 baseBetaVersion=15.12.6 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 76ab98e..d84e9ab 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 @@ -4,9 +4,9 @@ import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; -import android.graphics.drawable.ColorDrawable; import android.text.TextUtils; import android.util.AttributeSet; +import android.view.View; import android.widget.ImageView; import android.widget.ImageView.ScaleType; import android.widget.LinearLayout; @@ -132,6 +132,8 @@ public class BackgroundView extends RelativeLayout { setDefaultTransparentBackground(); return; } + + mIvBackground.setVisibility(View.GONE); // 计算原图比例 if (!calculateImageAspectRatio(imageFile)) { @@ -235,6 +237,8 @@ public class BackgroundView extends RelativeLayout { params.height = ivHeight; mIvBackground.setLayoutParams(params); mIvBackground.setScaleType(ScaleType.FIT_CENTER); // 确保居中平铺 + mIvBackground.setVisibility(View.VISIBLE); + //LogUtils.d(TAG, "ImageView尺寸:" + ivWidth + "x" + ivHeight); //LogUtils.d(TAG, "=== adjustImageViewSize 完成 ===");