Просмотр исходного кода

perf(dialog_select_section_export): ⚡ 优化对话框布局

Discut 3 лет назад
Родитель
Сommit
40adb0de08
1 измененных файлов с 55 добавлено и 76 удалено
  1. 55 76
      app/src/main/res/layout/dialog_select_section_export.xml

+ 55 - 76
app/src/main/res/layout/dialog_select_section_export.xml

@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
@@ -11,99 +10,79 @@
         android:layout_height="match_parent"
         android:orientation="vertical">
 
-        <!--        <androidx.core.widget.NestedScrollView
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:overScrollMode="ifContentScrolls"
-                    android:paddingTop="6dp">-->
-
         <LinearLayout
             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:layout_marginTop="12dp"
-                android:orientation="horizontal">
-
-                <io.legado.app.ui.widget.checkbox.SmoothCheckBox
-                    android:id="@+id/cb_all_export"
-                    android:layout_width="20dp"
-                    android:layout_height="20dp"
-                    android:layout_marginStart="6dp"
-                    android:layout_marginEnd="16dp" />
-
-                <TextView
-                    android:id="@+id/tv_all_export"
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:text="全部导出"
-                    android:textSize="18sp" />
-
-            </LinearLayout>
-
-<!--            <com.google.android.material.divider.MaterialDivider-->
-<!--                android:layout_width="match_parent"-->
-<!--                android:layout_height="wrap_content" />-->
-
-            <LinearLayout
-                android:layout_width="match_parent"
+            android:layout_marginTop="12dp"
+            android:orientation="horizontal">
+
+            <io.legado.app.ui.widget.checkbox.SmoothCheckBox
+                android:id="@+id/cb_all_export"
+                android:layout_width="20dp"
+                android:layout_height="20dp"
+                android:layout_marginStart="6dp"
+                android:layout_marginEnd="16dp" />
+
+            <TextView
+                android:id="@+id/tv_all_export"
+                android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:layout_marginTop="12dp"
-                android:orientation="horizontal">
+                android:text="@string/export_all"
+                android:textSize="18sp" />
 
-                <io.legado.app.ui.widget.checkbox.SmoothCheckBox
-                    android:id="@+id/cb_select_export"
-                    android:layout_width="20dp"
-                    android:layout_height="20dp"
-                    android:layout_marginStart="6dp"
-                    android:layout_marginEnd="16dp" />
+        </LinearLayout>
 
-                <TextView
-                    android:id="@+id/tv_select_export"
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:text="选择导出"
-                    android:textSize="18sp" />
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="12dp"
+            android:orientation="horizontal">
+
+            <io.legado.app.ui.widget.checkbox.SmoothCheckBox
+                android:id="@+id/cb_select_export"
+                android:layout_width="20dp"
+                android:layout_height="20dp"
+                android:layout_marginStart="6dp"
+                android:layout_marginEnd="16dp" />
+
+            <TextView
+                android:id="@+id/tv_select_export"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:text="@string/custom_export"
+                android:textSize="18sp" />
 
-            </LinearLayout>
+        </LinearLayout>
 
+        <io.legado.app.ui.widget.text.TextInputLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginTop="12dp"
+            android:hint="@string/file_contains_number">
 
-            <io.legado.app.ui.widget.text.TextInputLayout
+            <io.legado.app.lib.theme.view.ThemeEditText
+                android:id="@+id/et_epub_size"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:layout_marginTop="12dp"
-                android:hint="每个文件包含章节大小">
+                android:inputType="number"
+                tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
 
-                <io.legado.app.lib.theme.view.ThemeEditText
-                    android:id="@+id/et_epub_size"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    android:inputType="number"
-                    android:text="1"
-                    tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
+        </io.legado.app.ui.widget.text.TextInputLayout>
 
-            </io.legado.app.ui.widget.text.TextInputLayout>
+        <io.legado.app.ui.widget.text.TextInputLayout
+            android:id="@+id/ly_et_input_scope"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:hint="@string/export_chapter_index">
 
-            <io.legado.app.ui.widget.text.TextInputLayout
-                android:id="@+id/ly_et_input_scope"
+            <io.legado.app.lib.theme.view.ThemeEditText
+                android:id="@+id/et_input_scope"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:hint="输出章节序号">
-
-                <io.legado.app.lib.theme.view.ThemeEditText
-                    android:id="@+id/et_input_scope"
-                    android:layout_width="match_parent"
-                    android:layout_height="wrap_content"
-                    tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
+                tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
 
-            </io.legado.app.ui.widget.text.TextInputLayout>
-
-        </LinearLayout>
+        </io.legado.app.ui.widget.text.TextInputLayout>
 
-        <!--        </androidx.core.widget.NestedScrollView>-->
     </LinearLayout>