From a0ca18291031057944e5c481f001f62b396badf1 Mon Sep 17 00:00:00 2001 From: HapeLee <1321903405@qq.com> Date: Sun, 2 Nov 2025 13:51:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=B7=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ui/book/toc/ChapterListAdapter.kt | 7 ++-- .../main/res/layout/dialog_content_edit.xml | 1 + app/src/main/res/layout/item_chapter_list.xml | 35 +++++++------------ 3 files changed, 15 insertions(+), 28 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/toc/ChapterListAdapter.kt b/app/src/main/java/io/legado/app/ui/book/toc/ChapterListAdapter.kt index d2bdae394..529606bd1 100644 --- a/app/src/main/java/io/legado/app/ui/book/toc/ChapterListAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/book/toc/ChapterListAdapter.kt @@ -278,22 +278,19 @@ class ChapterListAdapter( when { item.isVolume -> { ivVolume.visible() - if (isCollapsed) ivColl.visible() - else ivColl.gone() + ivVolume.isChecked = isCollapsed tvChapterName.textSize = 12f - tvChapterName.setTextColor(context.themeColor(com.google.android.material.R.attr.colorTertiary)) + tvChapterName.setTextColor(context.themeColor(com.google.android.material.R.attr.colorSecondary)) tvChapterItem.setBackgroundColor(context.themeColor(com.google.android.material.R.attr.colorSurface)) } isDur -> { - ivColl.gone() ivVolume.gone() tvChapterName.setTextColor(context.themeColor(androidx.appcompat.R.attr.colorPrimary)) tvChapterItem.setBackgroundColor(context.themeColor(com.google.android.material.R.attr.colorSurfaceContainer)) } else -> { - ivColl.gone() ivVolume.gone() tvChapterName.setTextColor(context.themeColor(com.google.android.material.R.attr.colorOnSurface)) tvChapterItem.setBackgroundColor(context.themeColor(com.google.android.material.R.attr.colorSurface)) diff --git a/app/src/main/res/layout/dialog_content_edit.xml b/app/src/main/res/layout/dialog_content_edit.xml index e3117705b..f9aeef2de 100644 --- a/app/src/main/res/layout/dialog_content_edit.xml +++ b/app/src/main/res/layout/dialog_content_edit.xml @@ -17,6 +17,7 @@ android:id="@+id/scrollView" android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingBottom="32dp" app:layout_constraintTop_toBottomOf="@id/tool_bar"> - + app:icon="@drawable/m3_split_button_chevron_avd" /> + @@ -85,23 +91,6 @@ app:layout_constraintTop_toBottomOf="@id/tv_word_count" /> - - - - -