From 2a85d5bab4bc8a0ac8ddcbdb6b30c8585d2d0da0 Mon Sep 17 00:00:00 2001 From: HapeLee <1321903405@qq.com> Date: Sun, 26 Oct 2025 15:00:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=B8=8E=E5=8F=91=E7=8E=B0?= =?UTF-8?q?=E9=A1=B9=E4=BC=98=E5=8C=96=20#146?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/book/explore/ExploreShowActivity.kt | 1 - .../ui/book/explore/ExploreShowAdapter.kt | 11 +- .../kazusa/ui/book/search/SearchAdapter.kt | 13 +- app/src/main/res/layout/item_search.xml | 284 ++++++++++-------- 4 files changed, 175 insertions(+), 134 deletions(-) diff --git a/app/src/main/java/io/legato/kazusa/ui/book/explore/ExploreShowActivity.kt b/app/src/main/java/io/legato/kazusa/ui/book/explore/ExploreShowActivity.kt index 5b8eb3dd0..3ff63b8b1 100644 --- a/app/src/main/java/io/legato/kazusa/ui/book/explore/ExploreShowActivity.kt +++ b/app/src/main/java/io/legato/kazusa/ui/book/explore/ExploreShowActivity.kt @@ -43,7 +43,6 @@ class ExploreShowActivity : VMBaseActivity) = binding.run { if (kinds.isEmpty()) { - llKind.gone() + tvKind.gone() + tvAuthorKind.gone() } else { - llKind.visible() - llKind.setLabels(kinds) { chips -> - chips.textSize = 12f - } + tvAuthorKind.visible() + tvKind.visible() + val kindText = kinds.joinToString(" • ") + tvKind.text = kindText } } diff --git a/app/src/main/res/layout/item_search.xml b/app/src/main/res/layout/item_search.xml index db49e5b53..8afd7c52f 100644 --- a/app/src/main/res/layout/item_search.xml +++ b/app/src/main/res/layout/item_search.xml @@ -1,159 +1,197 @@ - - - - + + android:padding="8dp" + android:clickable="true" + android:background="?attr/selectableItemBackground" + android:orientation="horizontal" + android:scrollbars="none"> - - - + - - - - - - - - - - - - - - + + + - + - - + + android:layout_weight="1" + android:layout_marginStart="8dp" + android:layout_gravity="center" + android:orientation="vertical"> - - + + - + - + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + - \ No newline at end of file + \ No newline at end of file