From da30350ffa85967b1f48bfac723de7b093b7322f Mon Sep 17 00:00:00 2001
From: HapeLee <1321903405@qq.com>
Date: Sat, 11 Oct 2025 20:30:13 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=91=E7=8E=B0=E7=95=8C?=
=?UTF-8?q?=E9=9D=A2=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../kazusa/ui/main/explore/ExploreAdapter.kt | 4 ++-
app/src/main/res/layout/item_find_book.xml | 28 +++++++++++++++----
2 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/app/src/main/java/io/legato/kazusa/ui/main/explore/ExploreAdapter.kt b/app/src/main/java/io/legato/kazusa/ui/main/explore/ExploreAdapter.kt
index 2879f5eeb..5f811c056 100644
--- a/app/src/main/java/io/legato/kazusa/ui/main/explore/ExploreAdapter.kt
+++ b/app/src/main/java/io/legato/kazusa/ui/main/explore/ExploreAdapter.kt
@@ -67,7 +67,7 @@ class ExploreAdapter(
if (isExpanded) {
ivStatus.icon = ContextCompat.getDrawable(context, R.drawable.ic_arrow_right)
ivStatus.rotation = 90f
-
+ rotateLoading.visible()
if (scrollToId == item.bookSourceUrl) {
val pos = holder.bindingAdapterPosition
if (pos >= 0) callBack.scrollTo(pos)
@@ -78,6 +78,8 @@ class ExploreAdapter(
item.exploreKinds()
}.onSuccess { kindList ->
upKindList(flexbox, item.bookSourceUrl, kindList)
+ }.onFinally {
+ rotateLoading.gone()
}
} else {
ivStatus.icon = ContextCompat.getDrawable(context, R.drawable.ic_arrow_right)
diff --git a/app/src/main/res/layout/item_find_book.xml b/app/src/main/res/layout/item_find_book.xml
index 98927a06c..2c8716c72 100644
--- a/app/src/main/res/layout/item_find_book.xml
+++ b/app/src/main/res/layout/item_find_book.xml
@@ -14,7 +14,7 @@
android:animateLayoutChanges="true"
android:background="?attr/selectableItemBackground">
-
-
+ tools:text="起点中文"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/iv_status"/>
+ app:icon="@drawable/ic_arrow_right"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"/>
-
+
+
+