281 lines
11 KiB
XML
281 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:paddingBottom="8dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/root_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<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:layout_gravity="center_horizontal" />
|
|
|
|
<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" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingVertical="8dp"
|
|
android:text="阅读模式"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/chipGroupScrollMode"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp"
|
|
android:singleLine="false"
|
|
app:chipSpacingVertical="0dp"
|
|
app:selectionRequired="true"
|
|
app:singleSelection="true" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_webtoon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingTop="8dp"
|
|
android:text="条漫"
|
|
android:textStyle="bold" />
|
|
|
|
<io.legato.kazusa.ui.widget.DetailSeekBar
|
|
android:id="@+id/scv_Padding"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="16dp"
|
|
app:max="30"
|
|
app:title="侧边留白" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="8dp"
|
|
android:text="@string/footer"
|
|
android:textStyle="bold"
|
|
android:textSize="14sp" />
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1" />
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:id="@+id/rg_footer_orientation"
|
|
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/rb_left"
|
|
android:layout_width="34dp"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
app:chipIcon="@drawable/ic_align_left"
|
|
app:chipIconEnabled="true" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/rb_center"
|
|
android:layout_width="34dp"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
app:chipIcon="@drawable/ic_align_center"
|
|
app:chipIconEnabled="true" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/rb_hide"
|
|
android:layout_width="34dp"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
app:chipIcon="@drawable/ic_visibility_off"
|
|
app:chipIconEnabled="true" />
|
|
</com.google.android.material.chip.ChipGroup>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="8dp"
|
|
app:cardBackgroundColor="?attr/colorSurfaceVariant"
|
|
android:layout_marginHorizontal="16dp"
|
|
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>
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/cb_chapter_name"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
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:checkable="true"
|
|
android:clickable="true"
|
|
android:text="@string/manga_check_page_label" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/cb_page_number"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
android:text="4/30" />
|
|
|
|
</com.google.android.material.chip.ChipGroup>
|
|
|
|
<com.google.android.material.chip.ChipGroup
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/cb_chapter_label"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/manga_check_chapter_label" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/cb_chapter"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
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:checkable="true"
|
|
android:clickable="true"
|
|
android:text="@string/manga_check_progress_label" />
|
|
|
|
<com.google.android.material.chip.Chip
|
|
android:id="@+id/cb_progress_ratio"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checkable="true"
|
|
android:clickable="true"
|
|
android:text="2.1%" />
|
|
</com.google.android.material.chip.ChipGroup>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingHorizontal="12dp">
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
android:id="@+id/checkboxDisableClickScroll"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/disable_manga_click_scroll" />
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
android:id="@+id/checkboxDisableMangaScale"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/disable_manga_scale" />
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
android:id="@+id/checkboxHideMangaTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/hide_manga_title" />
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
android:id="@+id/checkboxVolumeKeyPage"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/volume_key_page" />
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.button.MaterialButtonGroup
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_color_filter"
|
|
style="@style/Widget.Material3Expressive.Button.TonalButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/manga_color_filter"
|
|
app:icon="@drawable/ic_filter" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btn_click_set"
|
|
style="@style/Widget.Material3Expressive.Button.TonalButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="2"
|
|
android:text="@string/click_regional_config"
|
|
app:icon="@drawable/ic_filter" />
|
|
|
|
</com.google.android.material.button.MaterialButtonGroup>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|