|
|
@@ -2,168 +2,202 @@
|
|
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:padding="16dp">
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:paddingHorizontal="16dp"
|
|
|
+ android:paddingVertical="8dp">
|
|
|
|
|
|
<LinearLayout
|
|
|
+ android:id="@+id/root_view"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
- <io.legato.kazusa.ui.widget.text.AccentTextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/manga_footer_config"
|
|
|
- android:textSize="18sp" />
|
|
|
+ android:gravity="center"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:paddingHorizontal="16dp"
|
|
|
+ android:paddingVertical="8dp">
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="36dp"
|
|
|
+ android:layout_height="4dp"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:layout_marginBottom="16dp"
|
|
|
+ android:background="@drawable/bg_bottom_sheet_handle" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/bottom_sheet_title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="漫画设置"
|
|
|
+ android:textSize="18sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="16dp"
|
|
|
- android:text="@string/manga_header_chapter"
|
|
|
- android:textSize="14sp" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="16dp"
|
|
|
- android:layout_marginTop="8dp">
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeCheckBox
|
|
|
- android:id="@+id/cb_chapter_label"
|
|
|
+ <TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/manga_check_chapter_label" />
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:text="@string/footer"
|
|
|
+ android:textSize="14sp" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeCheckBox
|
|
|
- android:id="@+id/cb_chapter"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="10dp"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/manga_check_chapter" />
|
|
|
+ <View
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeCheckBox
|
|
|
- android:id="@+id/cb_chapter_name"
|
|
|
+ <com.google.android.material.chip.ChipGroup
|
|
|
+ android:id="@+id/rg_footer_orientation"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="10dp"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/manga_check_chapter_name" />
|
|
|
+ app:selectionRequired="true"
|
|
|
+ app:singleSelection="true">
|
|
|
+
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
+ android:id="@+id/rb_left"
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
+ android:layout_width="34dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:chipIcon="@drawable/ic_align_left"
|
|
|
+ app:chipIconEnabled="true" />
|
|
|
+
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
+ android:id="@+id/rb_center"
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
+ android:layout_width="34dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:chipIcon="@drawable/ic_align_center"
|
|
|
+ app:chipIconEnabled="true" />
|
|
|
+
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
+ android:id="@+id/rb_hide"
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
+ android:layout_width="34dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:chipIcon="@drawable/ic_visibility_off"
|
|
|
+ app:chipIconEnabled="true" />
|
|
|
+ </com.google.android.material.chip.ChipGroup>
|
|
|
+
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="16dp"
|
|
|
- android:text="@string/manga_header_page"
|
|
|
- android:textSize="14sp" />
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <com.google.android.material.card.MaterialCardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="16dp"
|
|
|
- android:layout_marginTop="8dp">
|
|
|
+ android:layout_marginVertical="8dp"
|
|
|
+ app:cardBackgroundColor="?attr/colorSurfaceVariant"
|
|
|
+ app:cardCornerRadius="8dp"
|
|
|
+ app:strokeWidth="0dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_chapter"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:padding="8dp" />
|
|
|
+ </com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeCheckBox
|
|
|
+ <com.google.android.material.chip.ChipGroup
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
+ android:id="@+id/cb_chapter_name"
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="第三话" />
|
|
|
+
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
android:id="@+id/cb_page_number_label"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
android:text="@string/manga_check_page_label" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeCheckBox
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
android:id="@+id/cb_page_number"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="10dp"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/manga_check_page_number" />
|
|
|
- </LinearLayout>
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
+ android:text="4/30" />
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="16dp"
|
|
|
- android:text="@string/manga_header_progress"
|
|
|
- android:textSize="14sp" />
|
|
|
+ </com.google.android.material.chip.ChipGroup>
|
|
|
|
|
|
- <LinearLayout
|
|
|
+ <com.google.android.material.chip.ChipGroup
|
|
|
android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="16dp"
|
|
|
- android:layout_marginTop="8dp">
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
+ android:id="@+id/cb_chapter_label"
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/manga_check_chapter_label" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeCheckBox
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
+ android:id="@+id/cb_chapter"
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="1 / 45" />
|
|
|
+
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
android:id="@+id/cb_progress_ratio_label"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
android:text="@string/manga_check_progress_label" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeCheckBox
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
android:id="@+id/cb_progress_ratio"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="10dp"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/manga_check_progress" />
|
|
|
- </LinearLayout>
|
|
|
+ style="@style/Widget.Material3.Chip.Suggestion"
|
|
|
+ android:text="2.1%" />
|
|
|
+ </com.google.android.material.chip.ChipGroup>
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="16dp"
|
|
|
- android:text="@string/manga_header_footer"
|
|
|
- android:textSize="14sp" />
|
|
|
-
|
|
|
- <RadioGroup
|
|
|
- android:id="@+id/rg_footer"
|
|
|
- android:layout_width="wrap_content"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="16dp"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeRadioButton
|
|
|
- android:id="@+id/rb_show"
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
+ android:id="@+id/chip_autoPage"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/show" />
|
|
|
+ android:text="@string/enable_auto_page_scroll" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeRadioButton
|
|
|
- android:id="@+id/rb_hide"
|
|
|
+ <View
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_weight="1" />
|
|
|
+
|
|
|
+ <io.legato.kazusa.ui.widget.SimpleCounterView
|
|
|
+ android:id="@+id/scv_autoPageSpeed"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="10dp"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/hide" />
|
|
|
- </RadioGroup>
|
|
|
+ app:max="100"
|
|
|
+ app:title="翻页速度" />
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <RadioGroup
|
|
|
- android:id="@+id/rg_footer_orientation"
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
+ android:id="@+id/btn_color_filter"
|
|
|
+ style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="16dp"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
- android:orientation="horizontal">
|
|
|
-
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeRadioButton
|
|
|
- android:id="@+id/rb_left"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/manga_radio_left" />
|
|
|
+ android:text="@string/manga_color_filter" />
|
|
|
|
|
|
- <io.legato.kazusa.lib.theme.view.ThemeRadioButton
|
|
|
- android:id="@+id/rb_center"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="10dp"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/manga_radio_center" />
|
|
|
- </RadioGroup>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|