pull/32/head
kunfei 5 years ago
parent 17414beeef
commit cebd9c0d9a
  1. 3
      app/src/main/java/io/legado/app/model/webbook/BookChapterList.kt
  2. 2
      app/src/main/res/layout/item_bookmark.xml
  3. 4
      app/src/main/res/layout/item_chapter_list.xml

@ -95,6 +95,9 @@ object BookChapterList {
val lh = LinkedHashSet(chapterList) val lh = LinkedHashSet(chapterList)
chapterList = ArrayList(lh) chapterList = ArrayList(lh)
chapterList.reverse() chapterList.reverse()
for ((index, item) in chapterList.withIndex()) {
item.index = index
}
return chapterList return chapterList
} }

@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="wrap_content">
<TextView <TextView
android:id="@+id/tv_chapter_name" android:id="@+id/tv_chapter_name"

@ -2,7 +2,9 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:padding="12dp">
<TextView <TextView
android:id="@+id/tv_chapter_name" android:id="@+id/tv_chapter_name"

Loading…
Cancel
Save