| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingHorizontal="16dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:gravity="center"
- android:paddingBottom="8dp"
- android:paddingHorizontal="16dp">
- <com.google.android.material.bottomsheet.BottomSheetDragHandleView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:paddingVertical="8dp"
- 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:layout_marginVertical="8dp"
- android:text="@string/read_config"
- android:textSize="18sp"
- android:textStyle="bold" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/body_title"
- android:textSize="16sp"
- 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/rg_title_mode"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginVertical="8dp"
- app:selectionRequired="true"
- app:singleLine="true"
- app:singleSelection="true">
- <com.google.android.material.chip.Chip
- android:id="@+id/rb_title_mode1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:checkable="true"
- android:text="@string/title_left" />
- <com.google.android.material.chip.Chip
- android:id="@+id/rb_title_mode2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:checkable="true"
- android:text="@string/title_center" />
- <com.google.android.material.chip.Chip
- android:id="@+id/rb_title_mode3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:checkable="true"
- android:text="@string/title_hide" />
- </com.google.android.material.chip.ChipGroup>
- </LinearLayout>
- <com.google.android.material.button.MaterialButtonGroup
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="end">
- <com.google.android.material.button.MaterialButton
- android:id="@+id/btn_title_segType"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="标题分段"
- style="@style/Widget.Material3Expressive.Button.TonalButton"/>
- <com.google.android.material.button.MaterialButton
- android:id="@+id/btn_title_seg_config"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="分段模式"
- style="@style/Widget.Material3Expressive.Button.TonalButton"/>
- <com.google.android.material.button.MaterialButton
- android:id="@+id/textFontWeightConverter"
- style="@style/Widget.Material3Expressive.Button.TonalButton"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/font_weight_text"
- android:minWidth="0dp" />
- </com.google.android.material.button.MaterialButtonGroup>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <io.legado.app.ui.widget.SimpleCounterView
- android:id="@+id/dsb_title_seg_scaling"
- android:layout_width="108dp"
- android:layout_height="wrap_content"
- app:max="20"
- app:min="-20"
- app:title="次行缩放" />
- <View
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"/>
- <io.legado.app.ui.widget.SimpleCounterView
- android:id="@+id/dsb_title_size"
- android:layout_width="108dp"
- android:layout_height="wrap_content"
- app:max="20"
- app:title="@string/title_font_size" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <io.legado.app.ui.widget.SimpleCounterView
- android:id="@+id/dsb_title_line_spacing_sub"
- android:layout_width="108dp"
- android:layout_height="wrap_content"
- app:max="30"
- app:min="-30"
- app:title="次行距离" />
- <View
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1" />
- <io.legado.app.ui.widget.SimpleCounterView
- android:id="@+id/dsb_title_line_spacing_extra"
- android:layout_width="108dp"
- android:layout_height="wrap_content"
- app:max="20"
- app:title="标题段距" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <io.legado.app.ui.widget.SimpleCounterView
- android:id="@+id/dsb_title_top"
- android:layout_width="120dp"
- android:layout_height="wrap_content"
- app:max="200"
- app:title="@string/title_margin_top" />
- <View
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="1"/>
- <io.legado.app.ui.widget.SimpleCounterView
- android:id="@+id/dsb_title_bottom"
- android:layout_width="120dp"
- android:layout_height="wrap_content"
- app:max="200"
- app:title="@string/title_margin_bottom" />
- </LinearLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:text="工具栏样式"
- android:textSize="16sp"
- android:textStyle="bold"/>
- <com.google.android.material.chip.ChipGroup
- android:id="@+id/bottom_mode"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="end"
- android:layout_marginVertical="8dp"
- app:singleLine="true"
- app:singleSelection="true"
- app:selectionRequired="true">
- <com.google.android.material.chip.Chip
- android:id="@+id/bottom_mode1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:checkable="true"
- android:text="@string/flow_sys" />
- <com.google.android.material.chip.Chip
- android:id="@+id/bottom_mode2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:checkable="true"
- android:text="跟随阅读背景" />
- <com.google.android.material.chip.Chip
- android:id="@+id/bottom_mode3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:checkable="true"
- android:text="@string/custom" />
- </com.google.android.material.chip.ChipGroup>
- <com.google.android.material.button.MaterialButtonGroup
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="end">
- <io.legado.app.ui.widget.AccentColorButton
- android:id="@+id/abtnBackgroundColor"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- style="@style/Widget.Material3Expressive.Button.OutlinedButton"
- android:text="@string/background_color" />
- <io.legado.app.ui.widget.AccentColorButton
- android:id="@+id/abtnAccentColor"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- style="@style/Widget.Material3Expressive.Button.OutlinedButton"
- android:text="@string/accent" />
- </com.google.android.material.button.MaterialButtonGroup>
- </LinearLayout>
- </androidx.core.widget.NestedScrollView>
|