* fix(BooksSort): 🐛 修复更改排序后书架无法及时重新排序的问题 + 更改书架中书籍的排序规则后,在未同时更新分组的情况下,书架无法同步排序。必须重启app才能进行排序。 * feat(BooksSort): ✨ 新增综合排序 + 未更新时按照最近阅读时间排序,更新时将会按照更新时间排序
172 lines
6.4 KiB
XML
172 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_group_style"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:padding="6dp"
|
|
android:text="@string/group_style"
|
|
android:textColor="@color/primaryText" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/sp_group_style"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:entries="@array/group_style"
|
|
app:theme="@style/Spinner"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
</LinearLayout>
|
|
|
|
<io.legado.app.lib.theme.view.ThemeSwitch
|
|
android:id="@+id/sw_show_unread"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="6dp"
|
|
android:text="@string/show_unread"
|
|
app:layout_constraintTop_toBottomOf="@+id/ll_group_style"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<io.legado.app.lib.theme.view.ThemeSwitch
|
|
android:id="@+id/sw_show_last_update_time"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="6dp"
|
|
android:text="@string/show_last_update_time"
|
|
app:layout_constraintTop_toBottomOf="@+id/sw_show_unread"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<io.legado.app.lib.theme.view.ThemeSwitch
|
|
android:id="@+id/sw_show_wait_up_books"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="6dp"
|
|
android:text="@string/show_wait_up_count"
|
|
app:layout_constraintTop_toBottomOf="@+id/sw_show_last_update_time"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintRight_toLeftOf="@+id/ll_sort"
|
|
app:layout_constraintTop_toBottomOf="@+id/sw_show_wait_up_books"
|
|
app:layout_constraintLeft_toLeftOf="parent">
|
|
|
|
<io.legado.app.ui.widget.text.AccentTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="6dp"
|
|
android:text="@string/view"
|
|
android:textSize="16sp" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/rg_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/layout_list"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/layout_grid3"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/layout_grid4"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/layout_grid5"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/layout_grid6"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
</RadioGroup>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_sort"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintLeft_toRightOf="@+id/ll_layout"
|
|
app:layout_constraintTop_toBottomOf="@id/sw_show_wait_up_books"
|
|
app:layout_constraintRight_toRightOf="parent">
|
|
|
|
<io.legado.app.ui.widget.text.AccentTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="6dp"
|
|
android:text="@string/sort"
|
|
android:textSize="16sp" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/rg_sort"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bookshelf_px_0"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bookshelf_px_1"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bookshelf_px_2"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bookshelf_px_3"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bookshelf_px_4"
|
|
tools:ignore="TouchTargetSizeCheck" />
|
|
|
|
</RadioGroup>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |