257 lines
11 KiB
XML
257 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:orientation="vertical"
|
|
android:paddingHorizontal="16dp"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="vertical"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingBottom="8dp">
|
|
|
|
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingVertical="16dp"
|
|
android:minHeight="0dp"
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
<TextView
|
|
android:id="@+id/bottom_sheet_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bookshelf_layout"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:fillViewport="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/sw_show_unread"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/show_unread" />
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/sw_show_last_update_time"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/show_last_update_time" />
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/sw_show_wait_up_books"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/show_wait_up_count" />
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/sw_show_bookshelf_fast_scroller"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/show_bookshelf_fast_scroller" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_refresh_limit"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="2dp"
|
|
android:orientation="horizontal"
|
|
android:clickable="true"
|
|
android:background="?attr/selectableItemBackground">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingVertical="16dp"
|
|
android:text="@string/bookshelf_update_limit" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_value"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="8dp"
|
|
android:text="@string/group_style"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/chip_group_style"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:checkableBehavior="single"
|
|
android:paddingBottom="8dp"
|
|
app:selectionRequired="true"
|
|
app:singleSelection="true" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/sortview"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/chip_group_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:chipSpacingVertical="0dp"
|
|
android:checkableBehavior="single"
|
|
app:selectionRequired="true"
|
|
app:singleSelection="true">
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/chip_list"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:text="@string/list" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/chip_list_compact"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:text="@string/compact_list" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/chip_grid"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:text="@string/grid" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/chip_grid_compact"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:text="@string/compact_grid" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/chip_grid_cover"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:text="@string/cover_grid" />
|
|
</com.google.android.material.chip.ChipGroup>
|
|
|
|
<io.legato.kazusa.ui.widget.DetailSeekBar
|
|
android:id="@+id/slider_grid_count"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:title="@string/number_rows_columns"
|
|
android:stepSize="1"
|
|
app:max="9"
|
|
app:min="1"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/sort"
|
|
android:textSize="14sp"
|
|
android:textStyle="bold" />
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1" />
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/chipGroupOrder"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:selectionRequired="true"
|
|
app:singleSelection="true">
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/chip_asc"
|
|
android:layout_width="34dp"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
app:chipIcon="@drawable/ic_arrow_up" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/chip_desc"
|
|
android:layout_width="34dp"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
app:chipIcon="@drawable/ic_arrow_down" />
|
|
|
|
</com.google.android.material.chip.ChipGroup>
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/chip_group_sort"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
app:chipSpacingVertical="0dp"
|
|
app:selectionRequired="true"
|
|
app:singleSelection="true" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginVertical="16dp">
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnCancel"
|
|
style="@style/Widget.Material3Expressive.Button.OutlinedButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="8dp"
|
|
android:text="@string/cancel" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnOk"
|
|
style="@style/Widget.Material3Expressive.Button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/confirm" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</LinearLayout>
|