fix: 优化壁纸和相册页面按钮布局

- 壁纸预览页:去除'上一张'和'在相册中打开'按钮,保留'下一张'按钮并改为全宽
- 相册管理页:修复新建按钮双'+'号问题,删除文字中的'+'号,保留图标

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
hughhuangandClaude Sonnet 4.5 committed 2026-01-25 14:55:47 +08:00
1 parent aa091c047f
commit d189096299
2 files changed
+4 -46

No files matched your search

@@ -35,7 +35,7 @@
android:id="@+id/btnCreateAlbum"
android:layout_width="wrap_content"
android:layout_height="48dp"
android:text="+ 新建"
android:text="新建"
android:textSize="@dimen/text_size_sm"
android:backgroundTint="@color/accent_primary"
app:icon="@drawable/ic_add"
@@ -83,61 +83,19 @@
</com.google.android.material.card.MaterialCardView>
<!-- 操作按钮组 -->
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="@dimen/spacing_lg"
app:layout_constraintTop_toBottomOf="@id/cardWallpaper"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<com.google.android.material.button.MaterialButton
android:id="@+id/btnPrevious"
android:layout_width="0dp"
android:layout_height="@dimen/button_height"
android:layout_weight="1"
android:layout_marginEnd="@dimen/spacing_sm"
android:text="上一张"
android:textSize="@dimen/text_size_md"
app:icon="@drawable/ic_arrow_back"
app:iconGravity="textStart"
app:cornerRadius="@dimen/button_corner_radius"
app:strokeColor="@color/accent_primary"
app:strokeWidth="2dp"
style="@style/Widget.Material3.Button.OutlinedButton" />
<!-- 操作按钮 -->
<com.google.android.material.button.MaterialButton
android:id="@+id/btnNext"
android:layout_width="0dp"
android:layout_height="@dimen/button_height"
android:layout_weight="1"
android:layout_marginStart="@dimen/spacing_sm"
android:layout_marginTop="@dimen/spacing_lg"
android:text="下一张"
android:textSize="@dimen/text_size_md"
android:backgroundTint="@color/accent_primary"
app:icon="@drawable/ic_arrow_forward"
app:iconGravity="textEnd"
app:cornerRadius="@dimen/button_corner_radius"
style="@style/Widget.Material3.Button" />
</LinearLayout>
<!-- 次要操作按钮 -->
<com.google.android.material.button.MaterialButton
android:id="@+id/btnOpenInGallery"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="在相册中打开"
android:textSize="@dimen/text_size_sm"
android:layout_marginTop="100dp"
app:icon="@drawable/ic_folder"
app:iconGravity="textStart"
app:cornerRadius="@dimen/button_corner_radius"
app:strokeColor="@color/accent_secondary"
app:strokeWidth="1dp"
style="@style/Widget.Material3.Button.OutlinedButton"
style="@style/Widget.Material3.Button"
app:layout_constraintTop_toBottomOf="@id/cardWallpaper"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />