|
|
|
@ -1,90 +1,38 @@ |
|
|
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="match_parent" |
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content"> |
|
|
|
|
|
|
|
|
|
<Space |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="1" /> |
|
|
|
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton |
|
|
|
|
android:id="@+id/fabToc" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_margin="10dp" |
|
|
|
|
android:contentDescription="@string/chapter_list" |
|
|
|
|
android:src="@drawable/ic_toc" |
|
|
|
|
android:tint="@color/tv_text_default" |
|
|
|
|
android:tooltipText="@string/chapter_list" |
|
|
|
|
app:backgroundTint="@color/background_menu" |
|
|
|
|
app:elevation="2dp" |
|
|
|
|
app:fabSize="mini" |
|
|
|
|
app:pressedTranslationZ="2dp" |
|
|
|
|
tools:ignore="UnusedAttribute" /> |
|
|
|
|
|
|
|
|
|
<Space |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="1" /> |
|
|
|
|
|
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton |
|
|
|
|
android:id="@+id/fabBack" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_margin="10dp" |
|
|
|
|
android:contentDescription="@string/to_backstage" |
|
|
|
|
android:src="@drawable/ic_visibility_off" |
|
|
|
|
android:tint="@color/tv_text_default" |
|
|
|
|
android:tooltipText="@string/to_backstage" |
|
|
|
|
app:backgroundTint="@color/background_menu" |
|
|
|
|
app:elevation="2dp" |
|
|
|
|
app:fabSize="mini" |
|
|
|
|
app:pressedTranslationZ="2dp" |
|
|
|
|
tools:ignore="UnusedAttribute" /> |
|
|
|
|
|
|
|
|
|
<Space |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="1" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
<View style="@style/Style.Shadow.Bottom" /> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/ll_bottom_bg" |
|
|
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
|
|
android:id="@+id/root_view" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:background="@color/background_menu" |
|
|
|
|
android:padding="16dp" |
|
|
|
|
android:paddingLeft="16dp" |
|
|
|
|
android:paddingRight="16dp" |
|
|
|
|
android:paddingTop="6dp" |
|
|
|
|
android:paddingBottom="6dp" |
|
|
|
|
android:orientation="vertical"> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/iv_menu" |
|
|
|
|
android:layout_width="30dp" |
|
|
|
|
android:layout_height="30dp" |
|
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
|
android:layout_marginRight="8dp" |
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/tv_pre" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginStart="10dp" |
|
|
|
|
android:layout_marginEnd="10dp" |
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless" |
|
|
|
|
android:tooltipText="@string/menu" |
|
|
|
|
android:contentDescription="@string/menu" |
|
|
|
|
android:src="@drawable/ic_menu" |
|
|
|
|
android:tint="@color/tv_text_default" |
|
|
|
|
tools:ignore="UnusedAttribute" /> |
|
|
|
|
android:clickable="true" |
|
|
|
|
android:focusable="true" |
|
|
|
|
android:paddingTop="10dp" |
|
|
|
|
android:paddingBottom="10dp" |
|
|
|
|
android:text="@string/previous_chapter" |
|
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
android:textSize="14sp" /> |
|
|
|
|
|
|
|
|
|
<View |
|
|
|
|
android:layout_width="0dp" |
|
|
|
@ -148,18 +96,20 @@ |
|
|
|
|
android:layout_height="1dp" |
|
|
|
|
android:layout_weight="1" /> |
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/iv_other_config" |
|
|
|
|
android:layout_width="30dp" |
|
|
|
|
android:layout_height="30dp" |
|
|
|
|
android:layout_marginLeft="8dp" |
|
|
|
|
android:layout_marginRight="8dp" |
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/tv_next" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginStart="10dp" |
|
|
|
|
android:layout_marginEnd="10dp" |
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless" |
|
|
|
|
android:tooltipText="@string/other_aloud_setting" |
|
|
|
|
android:contentDescription="@string/other_aloud_setting" |
|
|
|
|
android:src="@drawable/ic_settings" |
|
|
|
|
android:tint="@color/tv_text_default" |
|
|
|
|
tools:ignore="UnusedAttribute" /> |
|
|
|
|
android:clickable="true" |
|
|
|
|
android:focusable="true" |
|
|
|
|
android:paddingTop="10dp" |
|
|
|
|
android:paddingBottom="10dp" |
|
|
|
|
android:text="@string/next_chapter" |
|
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
android:textSize="14sp" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
@ -168,7 +118,7 @@ |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:gravity="center" |
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
android:padding="8dp"> |
|
|
|
|
android:padding="6dp"> |
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView |
|
|
|
|
android:layout_width="30dp" |
|
|
|
@ -194,11 +144,6 @@ |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
<View |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="0.8dp" |
|
|
|
|
android:background="@color/divider" /> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
@ -235,13 +180,156 @@ |
|
|
|
|
<io.legado.app.lib.theme.view.ATESeekBar |
|
|
|
|
android:id="@+id/seek_tts_SpeechRate" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="30dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_marginStart="15dp" |
|
|
|
|
android:layout_marginEnd="15dp" |
|
|
|
|
android:max="45" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="50dp" |
|
|
|
|
android:layout_marginTop="8dp" |
|
|
|
|
android:baselineAligned="false" |
|
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
<!--目录按钮--> |
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/ll_catalog" |
|
|
|
|
android:layout_width="50dp" |
|
|
|
|
android:layout_height="50dp" |
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless" |
|
|
|
|
android:clickable="true" |
|
|
|
|
android:contentDescription="@string/chapter_list" |
|
|
|
|
android:focusable="true" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:paddingBottom="7dp"> |
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="0dp" |
|
|
|
|
android:layout_weight="1" |
|
|
|
|
android:contentDescription="@string/chapter_list" |
|
|
|
|
android:src="@drawable/ic_toc" |
|
|
|
|
app:tint="@color/tv_text_default" |
|
|
|
|
tools:ignore="NestedWeights" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_gravity="center_horizontal" |
|
|
|
|
android:layout_marginTop="3dp" |
|
|
|
|
android:text="@string/chapter_list" |
|
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
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="50dp" |
|
|
|
|
android:layout_height="50dp" |
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless" |
|
|
|
|
android:clickable="true" |
|
|
|
|
android:contentDescription="@string/read_aloud" |
|
|
|
|
android:focusable="true" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:paddingBottom="7dp"> |
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="0dp" |
|
|
|
|
android:layout_weight="1" |
|
|
|
|
android:contentDescription="@string/main_menu" |
|
|
|
|
android:src="@drawable/ic_menu" |
|
|
|
|
app:tint="@color/tv_text_default" |
|
|
|
|
tools:ignore="NestedWeights" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_gravity="center_horizontal" |
|
|
|
|
android:layout_marginTop="3dp" |
|
|
|
|
android:text="@string/main_menu" |
|
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
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="50dp" |
|
|
|
|
android:layout_height="50dp" |
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless" |
|
|
|
|
android:clickable="true" |
|
|
|
|
android:contentDescription="@string/interface_setting" |
|
|
|
|
android:focusable="true" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:paddingBottom="7dp"> |
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="0dp" |
|
|
|
|
android:layout_weight="1" |
|
|
|
|
android:contentDescription="@string/to_backstage" |
|
|
|
|
android:src="@drawable/ic_visibility_off" |
|
|
|
|
app:tint="@color/tv_text_default" |
|
|
|
|
tools:ignore="NestedWeights" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_gravity="center_horizontal" |
|
|
|
|
android:layout_marginTop="3dp" |
|
|
|
|
android:text="@string/to_backstage" |
|
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
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="50dp" |
|
|
|
|
android:layout_height="50dp" |
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless" |
|
|
|
|
android:clickable="true" |
|
|
|
|
android:contentDescription="@string/setting" |
|
|
|
|
android:focusable="true" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:paddingBottom="7dp"> |
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="0dp" |
|
|
|
|
android:layout_weight="1" |
|
|
|
|
android:contentDescription="@string/aloud_config" |
|
|
|
|
android:src="@drawable/ic_settings" |
|
|
|
|
app:tint="@color/tv_text_default" |
|
|
|
|
tools:ignore="NestedWeights" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_gravity="center_horizontal" |
|
|
|
|
android:layout_marginTop="3dp" |
|
|
|
|
android:text="@string/aloud_config" |
|
|
|
|
android:textColor="@color/tv_text_default" |
|
|
|
|
android:textSize="12sp" /> |
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |