This commit is contained in:
HapeLee committed 2025-06-16 19:56:31 +08:00
1 parent 8c43d4bcd1
commit 372327b605
5 files changed
+227 -223

No files matched your search

+1 -1
View File
@@ -6,6 +6,6 @@
android:viewportHeight="24"> android:viewportHeight="24">
<path <path
android:fillColor="#595757" android:fillColor="?attr/colorPrimary"
android:pathData="M12,4h8v8c0,4.418-3.582,8-8,8s-8-3.582-8-8S7.582,4,12,4z" /> android:pathData="M12,4h8v8c0,4.418-3.582,8-8,8s-8-3.582-8-8S7.582,4,12,4z" />
</vector> </vector>
@@ -6,6 +6,6 @@
android:viewportHeight="24"> android:viewportHeight="24">
<path <path
android:fillColor="#595757" android:fillColor="?attr/colorPrimary"
android:pathData="M12,4.208H4v8c0,4.418,3.582,8,8,8s8-3.582,8-8S16.418,4.208,12,4.208z" /> android:pathData="M12,4.208H4v8c0,4.418,3.582,8,8,8s8-3.582,8-8S16.418,4.208,12,4.208z" />
</vector> </vector>
+1 -1
View File
@@ -35,7 +35,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fillViewport="true"> android:fillViewport="true">
<com.google.android.material.textview.MaterialTextView <io.legato.kazusa.ui.widget.text.ScrollTextView
android:id="@+id/text_view" android:id="@+id/text_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
+3 -3
View File
@@ -5,15 +5,15 @@
android:id="@+id/textInputLayout" android:id="@+id/textInputLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingHorizontal="12dp" android:paddingHorizontal="16dp"
android:paddingVertical="6dp"> android:paddingVertical="8dp">
<io.legato.kazusa.ui.widget.code.CodeView <io.legato.kazusa.ui.widget.code.CodeView
android:id="@+id/editText" android:id="@+id/editText"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox.Dense" style="@style/Widget.Material3.TextInputLayout.OutlinedBox.Dense"
android:padding="12dp" android:padding="16dp"
android:inputType="textMultiLine" android:inputType="textMultiLine"
tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" /> tools:ignore="SpeakableTextPresentCheck,TouchTargetSizeCheck" />
+221 -217
View File
@@ -19,7 +19,6 @@
android:id="@+id/title_bar" android:id="@+id/title_bar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="?attr/actionBarStyle"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
@@ -197,246 +196,251 @@
</LinearLayout> </LinearLayout>
<!--底部设置栏--> <com.google.android.material.card.MaterialCardView
<LinearLayout
android:id="@+id/ll_bottom_bg"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/colorSurface" app:strokeWidth="0dp"
android:importantForAccessibility="no" android:layout_margin="8dp">
android:orientation="vertical">
<!--章节设置-->
<LinearLayout <LinearLayout
android:id="@+id/ll_bottom_bg"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="16dp" android:background="?attr/colorSurface"
android:layout_marginTop="5dp"
android:layout_marginRight="16dp"
android:layout_marginBottom="5dp"
android:importantForAccessibility="no" android:importantForAccessibility="no"
android:gravity="center" android:orientation="vertical">
android:orientation="horizontal"> <!--章节设置-->
<com.google.android.material.button.MaterialButton
android:id="@+id/tv_pre"
style="@style/Widget.Material3.Button.IconButton.Outlined"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:clickable="true"
android:enabled="false"
android:focusable="true"
app:icon="@drawable/ic_previous"
android:contentDescription="@string/previous_chapter"
tools:ignore="TouchTargetSizeCheck" />
<com.google.android.material.slider.Slider
android:id="@+id/seek_read_page"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:valueTo="2.0"
android:valueFrom="1.0"
android:value="1.0"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/tv_next"
style="@style/Widget.Material3.Button.IconButton.Outlined"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:clickable="true"
android:enabled="false"
android:focusable="true"
app:icon="@drawable/ic_next"
android:contentDescription="@string/next_chapter"
tools:ignore="TouchTargetSizeCheck"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:importantForAccessibility="no"
android:orientation="horizontal">
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:importantForAccessibility="no" />
<!--目录按钮-->
<LinearLayout <LinearLayout
android:id="@+id/ll_catalog" android:layout_width="match_parent"
android:layout_width="56dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackgroundBorderless" android:layout_marginLeft="16dp"
android:clickable="true" android:layout_marginTop="5dp"
android:contentDescription="@string/chapter_list" android:layout_marginRight="16dp"
android:focusable="true" android:layout_marginBottom="5dp"
android:orientation="vertical" android:importantForAccessibility="no"
android:gravity="center" android:gravity="center"
android:paddingBottom="4dp" android:orientation="horizontal">
tools:ignore="VisualLintBounds">
<androidx.appcompat.widget.AppCompatImageView <com.google.android.material.button.MaterialButton
android:id="@+id/iv_catalog" android:id="@+id/tv_pre"
android:layout_width="match_parent" style="@style/Widget.Material3.Button.IconButton.Outlined"
android:layout_height="0dp" android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:clickable="true"
android:enabled="false"
android:focusable="true"
app:icon="@drawable/ic_previous"
android:contentDescription="@string/previous_chapter"
tools:ignore="TouchTargetSizeCheck" />
<com.google.android.material.slider.Slider
android:id="@+id/seek_read_page"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1" android:layout_weight="1"
android:adjustViewBounds="true" android:valueTo="2.0"
android:valueFrom="1.0"
android:value="1.0"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/tv_next"
style="@style/Widget.Material3.Button.IconButton.Outlined"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:clickable="true"
android:enabled="false"
android:focusable="true"
app:icon="@drawable/ic_next"
android:contentDescription="@string/next_chapter"
tools:ignore="TouchTargetSizeCheck"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:importantForAccessibility="no"
android:orientation="horizontal">
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:importantForAccessibility="no" />
<!--目录按钮-->
<LinearLayout
android:id="@+id/ll_catalog"
android:layout_width="56dp"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/chapter_list" android:contentDescription="@string/chapter_list"
android:maxHeight="24dp" android:focusable="true"
android:src="@drawable/ic_toc" android:orientation="vertical"
tools:ignore="NestedWeights" /> android:gravity="center"
android:paddingBottom="4dp"
tools:ignore="VisualLintBounds">
<TextView <androidx.appcompat.widget.AppCompatImageView
android:id="@+id/tv_catalog" android:id="@+id/iv_catalog"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:adjustViewBounds="true"
android:contentDescription="@string/chapter_list"
android:maxHeight="24dp"
android:src="@drawable/ic_toc"
tools:ignore="NestedWeights" />
<TextView
android:id="@+id/tv_catalog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:ellipsize="middle"
android:singleLine="true"
android:text="@string/chapter_list"
android:textSize="12sp" />
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:importantForAccessibility="no" />
<!--调节按钮-->
<LinearLayout
android:id="@+id/ll_read_aloud"
android:layout_width="56dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp" android:background="?android:attr/selectableItemBackgroundBorderless"
android:ellipsize="middle" android:clickable="true"
android:singleLine="true"
android:text="@string/chapter_list"
android:textSize="12sp" />
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:importantForAccessibility="no" />
<!--调节按钮-->
<LinearLayout
android:id="@+id/ll_read_aloud"
android:layout_width="56dp"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/read_aloud"
android:focusable="true"
android:orientation="vertical"
android:gravity="center"
android:paddingBottom="4dp"
tools:ignore="VisualLintBounds">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_read_aloud"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:adjustViewBounds="true"
android:contentDescription="@string/read_aloud" android:contentDescription="@string/read_aloud"
android:maxHeight="24dp" android:focusable="true"
android:src="@drawable/ic_read_aloud" android:orientation="vertical"
tools:ignore="NestedWeights" /> android:gravity="center"
android:paddingBottom="4dp"
tools:ignore="VisualLintBounds">
<TextView <androidx.appcompat.widget.AppCompatImageView
android:id="@+id/tv_read_aloud" android:id="@+id/iv_read_aloud"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:adjustViewBounds="true"
android:contentDescription="@string/read_aloud"
android:maxHeight="24dp"
android:src="@drawable/ic_read_aloud"
tools:ignore="NestedWeights" />
<TextView
android:id="@+id/tv_read_aloud"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:ellipsize="middle"
android:singleLine="true"
android:text="@string/read_aloud"
android:textSize="12sp" />
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:importantForAccessibility="no" />
<!--界面按钮-->
<LinearLayout
android:id="@+id/ll_font"
android:layout_width="56dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp" android:background="?android:attr/selectableItemBackgroundBorderless"
android:ellipsize="middle" android:clickable="true"
android:singleLine="true"
android:text="@string/read_aloud"
android:textSize="12sp" />
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:importantForAccessibility="no" />
<!--界面按钮-->
<LinearLayout
android:id="@+id/ll_font"
android:layout_width="56dp"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/interface_setting"
android:focusable="true"
android:orientation="vertical"
android:gravity="center"
android:paddingBottom="4dp"
tools:ignore="VisualLintBounds">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_font"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:adjustViewBounds="true"
android:contentDescription="@string/interface_setting" android:contentDescription="@string/interface_setting"
android:maxHeight="24dp" android:focusable="true"
android:src="@drawable/ic_interface_setting" android:orientation="vertical"
tools:ignore="NestedWeights" /> android:gravity="center"
android:paddingBottom="4dp"
tools:ignore="VisualLintBounds">
<TextView <androidx.appcompat.widget.AppCompatImageView
android:id="@+id/tv_font" android:id="@+id/iv_font"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:adjustViewBounds="true"
android:contentDescription="@string/interface_setting"
android:maxHeight="24dp"
android:src="@drawable/ic_interface_setting"
tools:ignore="NestedWeights" />
<TextView
android:id="@+id/tv_font"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:ellipsize="middle"
android:singleLine="true"
android:text="@string/interface_setting"
android:textSize="12sp" />
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:importantForAccessibility="no" />
<!--设置按钮-->
<LinearLayout
android:id="@+id/ll_setting"
android:layout_width="56dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="2dp" android:background="?android:attr/selectableItemBackgroundBorderless"
android:ellipsize="middle" android:clickable="true"
android:singleLine="true"
android:text="@string/interface_setting"
android:textSize="12sp" />
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2"
android:importantForAccessibility="no" />
<!--设置按钮-->
<LinearLayout
android:id="@+id/ll_setting"
android:layout_width="56dp"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:contentDescription="@string/setting"
android:focusable="true"
android:orientation="vertical"
android:gravity="center"
android:paddingBottom="4dp"
tools:ignore="VisualLintBounds">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_setting"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:adjustViewBounds="true"
android:contentDescription="@string/setting" android:contentDescription="@string/setting"
android:maxHeight="24dp" android:focusable="true"
android:src="@drawable/ic_settings" android:orientation="vertical"
tools:ignore="NestedWeights" /> android:gravity="center"
android:paddingBottom="4dp"
tools:ignore="VisualLintBounds">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/iv_setting"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:adjustViewBounds="true"
android:contentDescription="@string/setting"
android:maxHeight="24dp"
android:src="@drawable/ic_settings"
tools:ignore="NestedWeights" />
<TextView
android:id="@+id/tv_setting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:ellipsize="middle"
android:singleLine="true"
android:text="@string/setting"
android:textSize="12sp" />
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:importantForAccessibility="no" />
<TextView
android:id="@+id/tv_setting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:ellipsize="middle"
android:singleLine="true"
android:text="@string/setting"
android:textSize="12sp" />
</LinearLayout> </LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:importantForAccessibility="no" />
</LinearLayout> </LinearLayout>
</LinearLayout> </com.google.android.material.card.MaterialCardView>
</LinearLayout> </LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>