|
@@ -1,22 +1,21 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical"
|
|
android:orientation="vertical"
|
|
|
android:gravity="center"
|
|
android:gravity="center"
|
|
|
- android:paddingBottom="16dp"
|
|
|
|
|
|
|
+ android:paddingBottom="8dp"
|
|
|
android:paddingHorizontal="16dp">
|
|
android:paddingHorizontal="16dp">
|
|
|
|
|
|
|
|
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:paddingVertical="16dp"
|
|
|
|
|
|
|
+ android:paddingVertical="8dp"
|
|
|
android:minHeight="0dp"
|
|
android:minHeight="0dp"
|
|
|
android:layout_gravity="center_horizontal" />
|
|
android:layout_gravity="center_horizontal" />
|
|
|
|
|
|
|
@@ -24,260 +23,25 @@
|
|
|
android:id="@+id/bottom_sheet_title"
|
|
android:id="@+id/bottom_sheet_title"
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/text_font"
|
|
|
|
|
- android:textSize="18sp"
|
|
|
|
|
|
|
+ android:text="@string/select_font"
|
|
|
|
|
+ android:textSize="16sp"
|
|
|
android:textStyle="bold" />
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_gravity="center"
|
|
|
|
|
- android:layout_marginHorizontal="16dp"
|
|
|
|
|
- android:layout_marginBottom="8dp"
|
|
|
|
|
- android:text="@string/text_typeface"
|
|
|
|
|
- android:textSize="14sp"
|
|
|
|
|
- android:textStyle="bold" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButtonGroup
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginHorizontal="16dp"
|
|
|
|
|
- android:gravity="end|center_vertical">
|
|
|
|
|
-
|
|
|
|
|
- <io.legado.app.ui.widget.AccentColorButton
|
|
|
|
|
- android:id="@+id/btn_text_color"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.OutlinedButton"
|
|
|
|
|
- android:text="@string/text_color" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/sw_underline"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
|
|
|
|
|
- app:icon="@drawable/ic_underline"
|
|
|
|
|
- android:checkable="true"
|
|
|
|
|
- android:focusable="true"/>
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/sw_dottedline"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
|
|
|
|
|
- app:icon="@drawable/ic_dottedline"
|
|
|
|
|
- android:checkable="true"
|
|
|
|
|
- android:focusable="true"/>
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/btn_textItalic"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
|
|
|
|
|
- app:icon="@drawable/ic_format_italic"
|
|
|
|
|
- android:checkable="true"
|
|
|
|
|
- android:focusable="true"/>
|
|
|
|
|
-
|
|
|
|
|
- </com.google.android.material.button.MaterialButtonGroup>
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButtonGroup
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:paddingHorizontal="16dp"
|
|
|
|
|
- android:paddingVertical="4dp"
|
|
|
|
|
- android:gravity="end|center_vertical">
|
|
|
|
|
-
|
|
|
|
|
- <io.legado.app.ui.widget.AccentColorButton
|
|
|
|
|
- android:id="@+id/btnShadowColor"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.OutlinedButton"
|
|
|
|
|
- android:text="@string/text_shadow_color" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/btn_textShadow"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
|
|
|
|
|
- app:icon="@drawable/ic_shadow"
|
|
|
|
|
- android:checkable="true"
|
|
|
|
|
- android:focusable="true"/>
|
|
|
|
|
-
|
|
|
|
|
- </com.google.android.material.button.MaterialButtonGroup>
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
+ android:id="@+id/recyclerView"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:gravity="end">
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/textFontWeightConverter"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:minWidth="0dp"
|
|
|
|
|
- android:textSize="12sp" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.slider.Slider
|
|
|
|
|
- android:id="@+id/sliderFontWeight"
|
|
|
|
|
- android:layout_width="160dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:stepSize="1"
|
|
|
|
|
- android:valueFrom="0"
|
|
|
|
|
- android:valueTo="20"
|
|
|
|
|
- app:thumbHeight="24dp"
|
|
|
|
|
- app:trackHeight="24dp" />
|
|
|
|
|
-
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_weight="1" />
|
|
|
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/btn_other_dir"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical">
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_gravity="center"
|
|
|
|
|
- android:text="@string/shadow_typeface"
|
|
|
|
|
- android:layout_marginHorizontal="16dp"
|
|
|
|
|
- android:layout_marginVertical="8dp"
|
|
|
|
|
- android:textSize="14sp"
|
|
|
|
|
- android:textStyle="bold" />
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
-
|
|
|
|
|
- <io.legado.app.ui.widget.SimpleSliderView
|
|
|
|
|
- android:id="@+id/dsb_shadow_dx"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginEnd="32dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- app:isBottomBackground="true"
|
|
|
|
|
- app:max="20"
|
|
|
|
|
- app:title="@string/text_shadow_x" />
|
|
|
|
|
-
|
|
|
|
|
- <io.legado.app.ui.widget.SimpleSliderView
|
|
|
|
|
- android:id="@+id/dsb_shadow_dy"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- app:isBottomBackground="true"
|
|
|
|
|
- app:max="20"
|
|
|
|
|
- app:title="@string/text_shadow_y" />
|
|
|
|
|
-
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:gravity="bottom">
|
|
|
|
|
-
|
|
|
|
|
- <io.legado.app.ui.widget.SimpleSliderView
|
|
|
|
|
- android:id="@+id/dsb_shadow_radius"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginEnd="32dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- app:isBottomBackground="true"
|
|
|
|
|
- app:max="50"
|
|
|
|
|
- app:title="@string/text_shadow_radius" />
|
|
|
|
|
-
|
|
|
|
|
- <io.legado.app.ui.widget.SimpleSliderView
|
|
|
|
|
- android:id="@+id/btn_indent_layout"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- app:title="@string/text_indent"
|
|
|
|
|
- app:max="4" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
-
|
|
|
|
|
- <io.legado.app.ui.widget.SimpleSliderView
|
|
|
|
|
- android:id="@+id/dsb_paragraph_spacing"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginEnd="32dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- app:max="20"
|
|
|
|
|
- app:isBottomBackground="true"
|
|
|
|
|
- app:title="@string/paragraph_size" />
|
|
|
|
|
-
|
|
|
|
|
- <io.legado.app.ui.widget.SimpleSliderView
|
|
|
|
|
- android:id="@+id/dsb_line_size"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- app:isBottomBackground="true"
|
|
|
|
|
- app:max="20"
|
|
|
|
|
- app:title="@string/line_size" />
|
|
|
|
|
-
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:gravity="center_vertical"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
-
|
|
|
|
|
- <io.legado.app.ui.widget.SimpleSliderView
|
|
|
|
|
- android:id="@+id/dsb_text_letter_spacing"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- app:isBottomBackground="true"
|
|
|
|
|
- app:max="100"
|
|
|
|
|
- app:title="@string/text_letter_spacing" />
|
|
|
|
|
-
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_gravity="center"
|
|
|
|
|
- android:text="@string/select_font"
|
|
|
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_marginHorizontal="16dp"
|
|
|
- android:layout_marginBottom="8dp"
|
|
|
|
|
- android:textSize="14sp"
|
|
|
|
|
- android:textStyle="bold" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButtonGroup
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:gravity="end"
|
|
|
|
|
- android:paddingHorizontal="16dp">
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/btn_default_fonts"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.OutlinedButton"
|
|
|
|
|
- android:text="@string/default_font"/>
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/btn_other_dir"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- style="@style/Widget.Material3Expressive.Button.OutlinedButton"
|
|
|
|
|
- android:text="@string/other_folder"/>
|
|
|
|
|
- </com.google.android.material.button.MaterialButtonGroup>
|
|
|
|
|
-
|
|
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
- android:id="@+id/recycler_view"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
- android:layout_margin="2dp" />
|
|
|
|
|
|
|
+ android:layout_marginVertical="8dp"
|
|
|
|
|
+ style="@style/Widget.Material3Expressive.Button.OutlinedButton"
|
|
|
|
|
+ android:text="@string/other_folder"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|