|
@@ -33,66 +33,94 @@
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
|
|
+ android:id="@+id/set_bar"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center_vertical"
|
|
|
|
|
- android:orientation="horizontal"
|
|
|
|
|
- android:layout_marginHorizontal="16dp" >
|
|
|
|
|
-
|
|
|
|
|
- <io.legato.kazusa.ui.book.read.config.TextFontWeightConverter
|
|
|
|
|
- android:id="@+id/text_font_weight_converter"
|
|
|
|
|
- style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:text="@string/font_weight_text" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/tv_text_font"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
- android:text="@string/text_font" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/tv_text_indent"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
- android:text="@string/text_indent" />
|
|
|
|
|
-
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
|
- android:orientation="horizontal"
|
|
|
|
|
- android:layout_marginHorizontal="16dp" >
|
|
|
|
|
-
|
|
|
|
|
- <io.legato.kazusa.ui.book.read.config.ChineseConverter
|
|
|
|
|
- android:id="@+id/chinese_converter"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- style="@style/Widget.Material3.Button.TonalButton" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/tv_padding"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
- android:text="@string/padding" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/tv_tip"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:layout_marginHorizontal="12dp" >
|
|
|
|
|
+
|
|
|
|
|
+ <io.legato.kazusa.ui.book.read.config.TextFontWeightConverter
|
|
|
|
|
+ android:id="@+id/text_font_weight_converter"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
|
|
|
+ android:layout_width="72dp"
|
|
|
|
|
+ android:layout_height="72dp"
|
|
|
|
|
+ app:icon="@drawable/font_bold"
|
|
|
|
|
+ app:iconGravity="textTop"
|
|
|
|
|
+ android:text="@string/font_weight_text" />
|
|
|
|
|
+
|
|
|
|
|
+ <View
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_weight="1"/>
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/tv_text_font"
|
|
|
|
|
+ android:layout_width="72dp"
|
|
|
|
|
+ android:layout_height="72dp"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
|
|
|
+ app:icon="@drawable/font_style"
|
|
|
|
|
+ app:iconGravity="textTop"
|
|
|
|
|
+ android:text="@string/text_font" />
|
|
|
|
|
+
|
|
|
|
|
+ <View
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_weight="1"/>
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/tv_text_indent"
|
|
|
|
|
+ android:layout_width="72dp"
|
|
|
|
|
+ android:layout_height="72dp"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
|
|
|
+ app:icon="@drawable/ic_segment"
|
|
|
|
|
+ app:iconGravity="textTop"
|
|
|
|
|
+ android:text="@string/text_indent" />
|
|
|
|
|
+
|
|
|
|
|
+ <View
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_weight="1"/>
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/tv_padding"
|
|
|
|
|
+ android:layout_width="72dp"
|
|
|
|
|
+ android:layout_height="72dp"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
|
|
|
+ app:icon="@drawable/ic_padding"
|
|
|
|
|
+ app:iconGravity="textTop"
|
|
|
|
|
+ android:text="@string/padding" />
|
|
|
|
|
+
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
- android:text="@string/information" />
|
|
|
|
|
-
|
|
|
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:layout_marginHorizontal="12dp" >
|
|
|
|
|
+
|
|
|
|
|
+ <io.legato.kazusa.ui.book.read.config.ChineseConverter
|
|
|
|
|
+ android:id="@+id/chinese_converter"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.IconButton.Outlined" />
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/tv_tip"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
|
+ android:text="@string/information" />
|
|
|
|
|
+
|
|
|
|
|
+ </LinearLayout>
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<io.legato.kazusa.ui.widget.DetailSeekBar
|
|
<io.legato.kazusa.ui.widget.DetailSeekBar
|
|
@@ -140,129 +168,135 @@
|
|
|
android:layout_marginVertical="8dp"
|
|
android:layout_marginVertical="8dp"
|
|
|
android:background="@color/btn_bg_press" />
|
|
android:background="@color/btn_bg_press" />
|
|
|
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_page_anim"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginHorizontal="16dp"
|
|
|
|
|
- android:layout_marginBottom="4dp"
|
|
|
|
|
- android:text="@string/page_anim"
|
|
|
|
|
- android:textSize="12sp" />
|
|
|
|
|
-
|
|
|
|
|
- <HorizontalScrollView
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:scrollbars="none">
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.chip.ChipGroup
|
|
|
|
|
- android:id="@+id/rg_page_anim"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:paddingHorizontal="16dp"
|
|
|
|
|
- app:singleLine="true"
|
|
|
|
|
- app:singleSelection="true"
|
|
|
|
|
- app:selectionRequired="true">
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.chip.Chip
|
|
|
|
|
- android:id="@+id/rb_anim0"
|
|
|
|
|
- style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:text="@string/page_anim_cover"
|
|
|
|
|
- />
|
|
|
|
|
-
|
|
|
|
|
- <!-- 滑动动画 Chip -->
|
|
|
|
|
- <com.google.android.material.chip.Chip
|
|
|
|
|
- android:id="@+id/rb_anim1"
|
|
|
|
|
- style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_margin="4dp"
|
|
|
|
|
- android:text="@string/page_anim_slide"
|
|
|
|
|
- app:chipStrokeWidth="1dp" />
|
|
|
|
|
-
|
|
|
|
|
- <!-- 仿真翻页 Chip -->
|
|
|
|
|
- <com.google.android.material.chip.Chip
|
|
|
|
|
- android:id="@+id/rb_simulation_anim"
|
|
|
|
|
- style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_margin="4dp"
|
|
|
|
|
- android:text="@string/page_anim_simulation"
|
|
|
|
|
- app:chipStrokeWidth="1dp" />
|
|
|
|
|
-
|
|
|
|
|
- <!-- 滚动动画 Chip -->
|
|
|
|
|
- <com.google.android.material.chip.Chip
|
|
|
|
|
- android:id="@+id/rb_scroll_anim"
|
|
|
|
|
- style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_margin="4dp"
|
|
|
|
|
- android:text="@string/page_anim_scroll"
|
|
|
|
|
- app:chipStrokeWidth="1dp" />
|
|
|
|
|
-
|
|
|
|
|
- <!-- 无动画 Chip -->
|
|
|
|
|
- <com.google.android.material.chip.Chip
|
|
|
|
|
- android:id="@+id/rb_no_anim"
|
|
|
|
|
- style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_margin="4dp"
|
|
|
|
|
- android:text="@string/page_anim_none"
|
|
|
|
|
- app:chipStrokeWidth="1dp" />
|
|
|
|
|
-
|
|
|
|
|
- </com.google.android.material.chip.ChipGroup>
|
|
|
|
|
- </HorizontalScrollView>
|
|
|
|
|
-
|
|
|
|
|
- <View
|
|
|
|
|
- android:id="@+id/vw_bg_fg1"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="1dp"
|
|
|
|
|
- android:layout_marginHorizontal="16dp"
|
|
|
|
|
- android:layout_marginVertical="8dp"
|
|
|
|
|
- android:background="@color/btn_bg_press" />
|
|
|
|
|
-
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
|
|
+ android:id="@+id/set_bottom_bar"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:gravity="center_vertical"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
-
|
|
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
<TextView
|
|
<TextView
|
|
|
- android:id="@+id/tv_bg_ts"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
|
|
+ android:id="@+id/tv_page_anim"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="16dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:alpha="0.75"
|
|
|
|
|
- android:text="@string/text_bg_style"
|
|
|
|
|
|
|
+ android:layout_marginHorizontal="16dp"
|
|
|
|
|
+ android:layout_marginBottom="4dp"
|
|
|
|
|
+ android:text="@string/page_anim"
|
|
|
android:textSize="12sp" />
|
|
android:textSize="12sp" />
|
|
|
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_share_layout"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
|
|
+ <HorizontalScrollView
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/share_layout" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
|
- android:id="@+id/cb_share_layout"
|
|
|
|
|
- android:layout_width="20dp"
|
|
|
|
|
- android:layout_height="20dp"
|
|
|
|
|
- android:layout_marginStart="6dp"
|
|
|
|
|
- android:layout_marginEnd="16dp" />
|
|
|
|
|
|
|
+ android:scrollbars="none">
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.chip.ChipGroup
|
|
|
|
|
+ android:id="@+id/rg_page_anim"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:paddingHorizontal="16dp"
|
|
|
|
|
+ app:singleLine="true"
|
|
|
|
|
+ app:singleSelection="true"
|
|
|
|
|
+ app:selectionRequired="true">
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
|
|
+ android:id="@+id/rb_anim0"
|
|
|
|
|
+ style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:text="@string/page_anim_cover"
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 滑动动画 Chip -->
|
|
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
|
|
+ android:id="@+id/rb_anim1"
|
|
|
|
|
+ style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="4dp"
|
|
|
|
|
+ android:text="@string/page_anim_slide"
|
|
|
|
|
+ app:chipStrokeWidth="1dp" />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 仿真翻页 Chip -->
|
|
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
|
|
+ android:id="@+id/rb_simulation_anim"
|
|
|
|
|
+ style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="4dp"
|
|
|
|
|
+ android:text="@string/page_anim_simulation"
|
|
|
|
|
+ app:chipStrokeWidth="1dp" />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 滚动动画 Chip -->
|
|
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
|
|
+ android:id="@+id/rb_scroll_anim"
|
|
|
|
|
+ style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="4dp"
|
|
|
|
|
+ android:text="@string/page_anim_scroll"
|
|
|
|
|
+ app:chipStrokeWidth="1dp" />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 无动画 Chip -->
|
|
|
|
|
+ <com.google.android.material.chip.Chip
|
|
|
|
|
+ android:id="@+id/rb_no_anim"
|
|
|
|
|
+ style="@style/Widget.Material3.Chip.Filter"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_margin="4dp"
|
|
|
|
|
+ android:text="@string/page_anim_none"
|
|
|
|
|
+ app:chipStrokeWidth="1dp" />
|
|
|
|
|
+
|
|
|
|
|
+ </com.google.android.material.chip.ChipGroup>
|
|
|
|
|
+ </HorizontalScrollView>
|
|
|
|
|
|
|
|
|
|
+ <View
|
|
|
|
|
+ android:id="@+id/vw_bg_fg1"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="1dp"
|
|
|
|
|
+ android:layout_marginHorizontal="16dp"
|
|
|
|
|
+ android:layout_marginVertical="8dp"
|
|
|
|
|
+ android:background="@color/btn_bg_press" />
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_bg_ts"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:alpha="0.75"
|
|
|
|
|
+ android:text="@string/text_bg_style"
|
|
|
|
|
+ android:textSize="12sp" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_share_layout"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:text="@string/share_layout" />
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
|
+ android:id="@+id/cb_share_layout"
|
|
|
|
|
+ android:layout_width="20dp"
|
|
|
|
|
+ android:layout_height="20dp"
|
|
|
|
|
+ android:layout_marginStart="6dp"
|
|
|
|
|
+ android:layout_marginEnd="16dp" />
|
|
|
|
|
+
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
+ android:id="@+id/rv_style"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
|
|
+ android:layout_marginBottom="16dp"
|
|
|
|
|
+ android:clipToPadding="false"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:paddingHorizontal="12dp"
|
|
|
|
|
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
|
+ tool:listitem="@layout/item_read_style" />
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
- android:id="@+id/rv_style"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
- android:layout_marginBottom="16dp"
|
|
|
|
|
- android:clipToPadding="false"
|
|
|
|
|
- android:orientation="horizontal"
|
|
|
|
|
- android:paddingHorizontal="12dp"
|
|
|
|
|
- app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
|
- tool:listitem="@layout/item_read_style" />
|
|
|
|
|
-
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|