From 93c78c8fbc0fa9215eb2c79c51b45e572830e5d9 Mon Sep 17 00:00:00 2001 From: hugh <1012760428@qq.com> Date: Tue, 3 Feb 2026 21:38:01 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=9B=B4=E6=96=B0=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=92=8C=E4=BC=98=E5=8C=96=E7=9B=B8=E5=86=8C?= =?UTF-8?q?=E5=8D=A1=E7=89=87=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加自定义应用图标前景和通知图标 - 简化相册卡片布局结构,移除冗余元素 - 调整卡片样式:圆角、边框、按钮等细节优化 Co-Authored-By: Claude Opus 4.5 --- .../gk2/wallpaper/AutoWallpaperService.java | 2 +- .../res/drawable/ic_app_icon_foreground.xml | 11 + app/src/main/res/drawable/ic_notification.xml | 9 + app/src/main/res/layout/item_album_card.xml | 258 ++++++++---------- .../res/mipmap-anydpi-v26/ic_launcher.xml | 4 +- .../mipmap-anydpi-v26/ic_launcher_round.xml | 4 +- 6 files changed, 141 insertions(+), 147 deletions(-) create mode 100644 app/src/main/res/drawable/ic_app_icon_foreground.xml create mode 100644 app/src/main/res/drawable/ic_notification.xml diff --git a/app/src/main/java/cn/hugh/bz/gk2/wallpaper/AutoWallpaperService.java b/app/src/main/java/cn/hugh/bz/gk2/wallpaper/AutoWallpaperService.java index 2f151b8..11cc474 100644 --- a/app/src/main/java/cn/hugh/bz/gk2/wallpaper/AutoWallpaperService.java +++ b/app/src/main/java/cn/hugh/bz/gk2/wallpaper/AutoWallpaperService.java @@ -1043,7 +1043,7 @@ public class AutoWallpaperService extends WallpaperService { // 创建通知 NotificationCompat.Builder builder = new NotificationCompat.Builder(AutoWallpaperService.this, channelId) - .setSmallIcon(android.R.drawable.ic_menu_gallery) + .setSmallIcon(cn.hugh.bz.gk2.R.drawable.ic_notification) .setContentTitle("打开固定壁纸") .setContentText("点击在系统相册中查看固定壁纸") .setPriority(NotificationCompat.PRIORITY_HIGH) diff --git a/app/src/main/res/drawable/ic_app_icon_foreground.xml b/app/src/main/res/drawable/ic_app_icon_foreground.xml new file mode 100644 index 0000000..389fbc1 --- /dev/null +++ b/app/src/main/res/drawable/ic_app_icon_foreground.xml @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_notification.xml b/app/src/main/res/drawable/ic_notification.xml new file mode 100644 index 0000000..6305687 --- /dev/null +++ b/app/src/main/res/drawable/ic_notification.xml @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_album_card.xml b/app/src/main/res/layout/item_album_card.xml index 16e5c74..43006f9 100644 --- a/app/src/main/res/layout/item_album_card.xml +++ b/app/src/main/res/layout/item_album_card.xml @@ -8,10 +8,11 @@ android:layout_height="wrap_content" android:layout_marginBottom="12dp" android:layout_marginHorizontal="4dp" - app:cardElevation="2dp" - app:cardCornerRadius="16dp" + app:cardElevation="0dp" + app:cardCornerRadius="20dp" app:cardBackgroundColor="@color/white" - app:strokeWidth="0dp" + app:strokeWidth="1dp" + app:strokeColor="#F0F0F0" android:clickable="true" android:focusable="true" android:foreground="?android:attr/selectableItemBackground"> @@ -21,42 +22,68 @@ android:layout_height="wrap_content" android:padding="16dp"> - + + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintVertical_bias="0.0"> - - + + app:layout_constraintEnd_toEndOf="parent"> - + + + + + + + + app:layout_constraintStart_toStartOf="@id/headerRow" + app:layout_constraintTop_toBottomOf="@id/headerRow" + app:layout_constraintEnd_toEndOf="parent" /> - - - - - - - + + app:layout_constraintStart_toStartOf="@id/headerRow" + app:layout_constraintTop_toBottomOf="@id/tvAlbumInfo" + app:layout_constraintEnd_toStartOf="@id/actionsLayout" + app:layout_constraintBottom_toBottomOf="parent"> - + + - - - - - + android:layout_marginStart="4dp" + android:text="顺序" + android:textSize="12sp" + android:textColor="@color/text_hint" /> + + - + + - - - - - + android:layout_marginStart="4dp" + android:text="30m" + android:textSize="12sp" + android:textColor="@color/text_hint" /> - - - - - - - + + @@ -194,25 +164,26 @@ android:layout_height="wrap_content" android:gravity="center_vertical" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintBottom_toBottomOf="@id/statsRow" - app:layout_constraintTop_toTopOf="@id/statsRow"> + app:layout_constraintBottom_toBottomOf="parent"> + + android:paddingHorizontal="12dp" + android:minWidth="0dp" /> + + + android:insetBottom="0dp" + android:paddingHorizontal="12dp" + android:minWidth="0dp" /> diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml index 80b730f..3d781d0 100644 --- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -1,5 +1,5 @@ - - + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml index 80b730f..3d781d0 100644 --- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -1,5 +1,5 @@ - - + + \ No newline at end of file