| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409 |
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout 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:id="@+id/root_view"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingHorizontal="16dp"
- android:paddingBottom="8dp">
- <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:layout_gravity="center_horizontal" />
- <TextView
- android:id="@+id/bottom_sheet_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="朗读设置"
- android:textSize="18sp"
- android:textStyle="bold" />
- </LinearLayout>
- <com.google.android.material.button.MaterialButtonGroup
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:orientation="horizontal"
- android:layout_marginVertical="6dp">
- <com.google.android.material.button.MaterialButton
- android:id="@+id/iv_play_prev"
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
- android:layout_width="wrap_content"
- android:layout_height="48dp"
- android:contentDescription="@string/prev_sentence"
- android:tooltipText="@string/prev_sentence"
- app:icon="@drawable/ic_skip_previous"
- tools:ignore="UnusedAttribute" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/iv_play_pause"
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_marginHorizontal="6dp"
- android:contentDescription="@string/audio_play"
- android:tooltipText="@string/audio_play"
- app:icon="@drawable/ic_play"
- tools:ignore="UnusedAttribute" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/iv_stop"
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:layout_marginEnd="6dp"
- android:contentDescription="@string/stop"
- android:tooltipText="@string/stop"
- app:icon="@drawable/ic_stop_black_24dp"
- tools:ignore="UnusedAttribute" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/iv_play_next"
- style="@style/Widget.Material3Expressive.Button.TonalButton"
- android:layout_width="wrap_content"
- android:layout_height="48dp"
- android:contentDescription="@string/next_sentence"
- android:text="@string/next_sentence"
- app:icon="@drawable/ic_skip_next"
- tools:ignore="UnusedAttribute" />
- </com.google.android.material.button.MaterialButtonGroup>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:gravity="center_vertical"
- android:layout_marginVertical="6dp">
- <io.legato.kazusa.lib.theme.view.ThemeSlider
- android:id="@+id/seek_timer"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:valueFrom="0.0"
- android:valueTo="180.0"
- android:stepSize="1.0" />
- <com.google.android.material.button.MaterialButton
- android:id="@+id/iv_timer"
- style="@style/Widget.Material3.Button.IconButton.Outlined"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="12dp"
- android:contentDescription="@string/set_timer"
- app:icon="@drawable/ic_time_add_24dp" />
- </LinearLayout>
- <com.google.android.material.button.MaterialButtonGroup
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:weightSum="3"
- android:layout_marginVertical="6dp"
- android:layout_marginHorizontal="3dp">
- <!-- 上一章按钮 -->
- <com.google.android.material.button.MaterialButton
- android:id="@+id/tv_pre"
- style="@style/Widget.Material3Expressive.Button.OutlinedButton"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:textColor="?attr/colorPrimary"
- android:layout_weight="1"
- android:layout_marginEnd="8dp"
- android:minHeight="36dp"
- android:text="@string/previous_chapter"
- android:textSize="14sp"/>
- <!-- 计时器文本按钮 -->
- <com.google.android.material.button.MaterialButton
- android:id="@+id/btn_timer"
- style="@style/Widget.Material3Expressive.Button.TonalButton"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_marginHorizontal="6dp"
- android:layout_weight="1"
- android:padding="0dp"
- android:text="@string/timer_m" />
- <!-- 下一章按钮 -->
- <com.google.android.material.button.MaterialButton
- android:id="@+id/tv_next"
- style="@style/Widget.Material3Expressive.Button.OutlinedButton"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:textColor="?attr/colorPrimary"
- android:layout_weight="1"
- android:layout_marginStart="6dp"
- android:text="@string/next_chapter"
- android:textSize="14sp" />
- </com.google.android.material.button.MaterialButtonGroup>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <LinearLayout
- android:id="@+id/ll_tts_SpeechRate"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="8dp">
- <TextView
- android:id="@+id/tv_tts_speed"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="@string/read_aloud_speed"
- android:textSize="14sp" />
- <TextView
- android:id="@+id/tv_tts_speed_value"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:paddingHorizontal="3dp"
- android:textSize="14sp" />
- <Space
- android:layout_width="0dp"
- android:layout_height="1dp"
- android:layout_gravity="center"
- android:layout_weight="1" />
- <io.legato.kazusa.lib.theme.view.ThemeSwitch
- android:id="@+id/cb_tts_follow_sys"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:contentDescription="@string/flow_sys"
- android:text="@string/flow_sys"
- tools:ignore="RtlHardcoded,TouchTargetSizeCheck" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:gravity="center_vertical"
- android:paddingVertical="8dp">
- <com.google.android.material.button.MaterialButton
- android:id="@+id/iv_tts_speech_reduce"
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:contentDescription="@string/tts_speech_reduce"
- android:tooltipText="@string/tts_speech_reduce"
- app:icon="@drawable/ic_reduce"
- tools:ignore="UnusedAttribute" />
- <!-- 滑动条 (保持不变) -->
- <io.legato.kazusa.lib.theme.view.ThemeSlider
- android:id="@+id/seek_tts_speechRate"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:valueFrom="0"
- android:valueTo="45"
- android:stepSize="1"/>
- <com.google.android.material.button.MaterialButton
- android:id="@+id/iv_tts_speech_add"
- style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:contentDescription="@string/tts_speech_add"
- android:tooltipText="@string/tts_speech_add"
- app:icon="@drawable/ic_add"
- tools:ignore="UnusedAttribute" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:baselineAligned="false"
- android:orientation="horizontal">
- <!--目录按钮-->
- <LinearLayout
- android:id="@+id/ll_catalog"
- android:layout_width="60dp"
- android:layout_height="wrap_content"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:clickable="true"
- android:contentDescription="@string/chapter_list"
- android:focusable="true"
- android:orientation="vertical"
- android:paddingBottom="7dp">
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_catalog"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:adjustViewBounds="true"
- android:contentDescription="@string/chapter_list"
- android:maxHeight="20dp"
- 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_gravity="center_horizontal"
- android:layout_marginTop="3dp"
- 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" />
- <!--调节按钮-->
- <LinearLayout
- android:id="@+id/ll_main_menu"
- android:layout_width="60dp"
- android:layout_height="wrap_content"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:clickable="true"
- android:contentDescription="@string/read_aloud"
- android:focusable="true"
- android:orientation="vertical"
- android:paddingBottom="7dp"
- tools:ignore="TextSizeCheck">
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_main_menu"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:adjustViewBounds="true"
- android:contentDescription="@string/main_menu"
- android:maxHeight="20dp"
- android:src="@drawable/ic_menu"
- tools:ignore="NestedWeights" />
- <TextView
- android:id="@+id/tv_main_menu"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="3dp"
- android:ellipsize="middle"
- android:singleLine="true"
- android:text="@string/main_menu"
- android:textSize="12sp" />
- </LinearLayout>
- <View
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="2" />
- <!--界面按钮-->
- <LinearLayout
- android:id="@+id/ll_to_backstage"
- android:layout_width="60dp"
- android:layout_height="wrap_content"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:clickable="true"
- android:contentDescription="@string/to_backstage"
- android:focusable="true"
- android:orientation="vertical"
- android:paddingBottom="7dp">
- <androidx.appcompat.widget.AppCompatImageView
- android:id="@+id/iv_to_backstage"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:adjustViewBounds="true"
- android:contentDescription="@string/to_backstage"
- android:maxHeight="20dp"
- android:src="@drawable/ic_visibility_off"
- tools:ignore="NestedWeights" />
- <TextView
- android:id="@+id/tv_to_backstage"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal"
- android:layout_marginTop="3dp"
- android:ellipsize="middle"
- android:singleLine="true"
- android:text="@string/to_backstage"
- android:textSize="12sp" />
- </LinearLayout>
- <View
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="2" />
- <!--设置按钮-->
- <LinearLayout
- android:id="@+id/ll_setting"
- android:layout_width="60dp"
- android:layout_height="wrap_content"
- android:background="?attr/selectableItemBackgroundBorderless"
- android:clickable="true"
- android:contentDescription="@string/setting"
- android:focusable="true"
- android:orientation="vertical"
- android:paddingBottom="7dp">
- <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/aloud_config"
- android:maxHeight="20dp"
- 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_gravity="center_horizontal"
- android:layout_marginTop="3dp"
- android:ellipsize="middle"
- android:singleLine="true"
- android:text="@string/setting"
- android:textSize="12sp" />
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
|