|
@@ -22,10 +22,11 @@
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="120dp"
|
|
|
|
|
- app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"
|
|
|
|
|
- app:collapsedTitleTextAppearance="@style/TextAppearance.Material3.TitleLarge"
|
|
|
|
|
- app:expandedTitleTextAppearance="@style/TextAppearance.Material3.HeadlineMedium">
|
|
|
|
|
|
|
+ android:layout_height="?attr/collapsingToolbarLayoutLargeSize"
|
|
|
|
|
+ style="?attr/collapsingToolbarLayoutLargeSize"
|
|
|
|
|
+ app:collapsedTitleTextAppearance="?attr/textAppearanceTitleLarge"
|
|
|
|
|
+ app:expandedTitleTextAppearance="?attr/textAppearanceHeadlineLarge"
|
|
|
|
|
+ app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
|
android:id="@+id/top_bar"
|
|
android:id="@+id/top_bar"
|
|
@@ -64,18 +65,18 @@
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:background="@drawable/bg_gradient_mask"
|
|
android:background="@drawable/bg_gradient_mask"
|
|
|
- android:padding="16dp">
|
|
|
|
|
|
|
+ android:paddingHorizontal="16dp"
|
|
|
|
|
+ android:paddingTop="8dp">
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView
|
|
<androidx.cardview.widget.CardView
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- app:cardCornerRadius="5dp"
|
|
|
|
|
- app:cardElevation="8dp">
|
|
|
|
|
|
|
+ app:cardCornerRadius="8dp">
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.image.CoverImageView
|
|
<io.legado.app.ui.widget.image.CoverImageView
|
|
|
android:id="@+id/iv_cover"
|
|
android:id="@+id/iv_cover"
|
|
|
- android:layout_width="90dp"
|
|
|
|
|
- android:layout_height="130dp"
|
|
|
|
|
|
|
+ android:layout_width="100dp"
|
|
|
|
|
+ android:layout_height="140dp"
|
|
|
android:contentDescription="@string/img_cover"
|
|
android:contentDescription="@string/img_cover"
|
|
|
android:scaleType="centerCrop"
|
|
android:scaleType="centerCrop"
|
|
|
android:src="@drawable/image_cover_default" />
|
|
android:src="@drawable/image_cover_default" />
|
|
@@ -155,16 +156,6 @@
|
|
|
tools:ignore="NestedWeights,RtlHardcoded,RtlSymmetry"
|
|
tools:ignore="NestedWeights,RtlHardcoded,RtlSymmetry"
|
|
|
tools:text="@string/origin_format" />
|
|
tools:text="@string/origin_format" />
|
|
|
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/btn_change_source"
|
|
|
|
|
- style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
|
|
|
- android:layout_width="30dp"
|
|
|
|
|
- android:layout_height="30dp"
|
|
|
|
|
- app:iconGravity="textStart"
|
|
|
|
|
- app:icon="@drawable/ic_change_source"
|
|
|
|
|
- app:iconSize="18dp"
|
|
|
|
|
- tools:contentDescription="@string/change_origin" />
|
|
|
|
|
-
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
@@ -175,31 +166,12 @@
|
|
|
android:layout_height="match_parent"
|
|
android:layout_height="match_parent"
|
|
|
android:background="@color/background_theme"
|
|
android:background="@color/background_theme"
|
|
|
android:orientation="vertical"
|
|
android:orientation="vertical"
|
|
|
- android:paddingLeft="8dp"
|
|
|
|
|
- android:paddingRight="8dp"
|
|
|
|
|
- android:paddingBottom="8dp">
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
- android:paddingLeft="10dp"
|
|
|
|
|
- android:paddingTop="8dp"
|
|
|
|
|
- android:paddingRight="10dp"
|
|
|
|
|
- android:paddingBottom="3dp">
|
|
|
|
|
-
|
|
|
|
|
- <HorizontalScrollView
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_gravity="center"
|
|
|
|
|
- android:layout_marginBottom="6dp"
|
|
|
|
|
- android:scrollbars="none" />
|
|
|
|
|
|
|
+ android:padding="8dp">
|
|
|
|
|
|
|
|
<HorizontalScrollView
|
|
<HorizontalScrollView
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="center"
|
|
|
|
|
- android:layout_marginBottom="6dp"
|
|
|
|
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
android:scrollbars="none">
|
|
android:scrollbars="none">
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.LabelsBar
|
|
<io.legado.app.ui.widget.LabelsBar
|
|
@@ -209,16 +181,86 @@
|
|
|
android:visibility="gone" />
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
</HorizontalScrollView>
|
|
</HorizontalScrollView>
|
|
|
- </LinearLayout>
|
|
|
|
|
|
|
|
|
|
<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:paddingLeft="8dp"
|
|
|
|
|
- android:paddingRight="8dp"
|
|
|
|
|
|
|
+ android:paddingHorizontal="8dp"
|
|
|
android:paddingBottom="8dp">
|
|
android:paddingBottom="8dp">
|
|
|
|
|
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
|
+ android:weightSum="4"
|
|
|
|
|
+ android:gravity="center_vertical">
|
|
|
|
|
+
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/btn_shelf"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:layout_marginEnd="6dp"
|
|
|
|
|
+ android:padding="8dp"
|
|
|
|
|
+ android:text="@string/remove_from_bookshelf"
|
|
|
|
|
+ android:textSize="13sp"
|
|
|
|
|
+ app:icon="@drawable/ic_clear_all"
|
|
|
|
|
+ app:iconGravity="top"
|
|
|
|
|
+ app:iconPadding="4dp"
|
|
|
|
|
+ app:iconSize="20dp" />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 查看目录按钮 -->
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/tv_toc_view"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
|
|
+ android:padding="8dp"
|
|
|
|
|
+ android:text="@string/view_toc"
|
|
|
|
|
+ android:textSize="13sp"
|
|
|
|
|
+ app:icon="@drawable/ic_toc"
|
|
|
|
|
+ app:iconGravity="top"
|
|
|
|
|
+ app:iconPadding="4dp"
|
|
|
|
|
+ app:iconSize="20dp" />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 更换分组按钮 -->
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/tv_change_group"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
|
|
+ android:padding="8dp"
|
|
|
|
|
+ android:text="@string/change_group"
|
|
|
|
|
+ android:textSize="13sp"
|
|
|
|
|
+ app:icon="@drawable/ic_groups"
|
|
|
|
|
+ app:iconGravity="top"
|
|
|
|
|
+ app:iconPadding="4dp"
|
|
|
|
|
+ app:iconSize="20dp" />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 更换来源按钮(保持原样) -->
|
|
|
|
|
+ <com.google.android.material.button.MaterialButton
|
|
|
|
|
+ android:id="@+id/btn_change_source"
|
|
|
|
|
+ style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
+ android:layout_width="0dp"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:layout_marginStart="8dp"
|
|
|
|
|
+ android:text="@string/book_source"
|
|
|
|
|
+ android:padding="8dp"
|
|
|
|
|
+ app:icon="@drawable/ic_change_source"
|
|
|
|
|
+ android:textSize="13sp"
|
|
|
|
|
+ app:iconGravity="top"
|
|
|
|
|
+ app:iconPadding="4dp"
|
|
|
|
|
+ app:iconSize="20dp"
|
|
|
|
|
+ tools:contentDescription="@string/change_origin" />
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
android:id="@+id/ll_toc"
|
|
android:id="@+id/ll_toc"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
@@ -248,17 +290,6 @@
|
|
|
tools:ignore="NestedWeights,RtlHardcoded,RtlSymmetry"
|
|
tools:ignore="NestedWeights,RtlHardcoded,RtlSymmetry"
|
|
|
tools:text="@string/toc_s" />
|
|
tools:text="@string/toc_s" />
|
|
|
|
|
|
|
|
- <io.legado.app.ui.widget.text.AccentBgTextView
|
|
|
|
|
- android:id="@+id/tv_toc_view"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginStart="8dp"
|
|
|
|
|
- android:paddingLeft="5dp"
|
|
|
|
|
- android:paddingRight="5dp"
|
|
|
|
|
- android:text="@string/view_toc"
|
|
|
|
|
- android:textSize="13sp"
|
|
|
|
|
- app:radius="2dp" />
|
|
|
|
|
-
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
@@ -323,17 +354,6 @@
|
|
|
tools:ignore="NestedWeights,RtlHardcoded,RtlSymmetry"
|
|
tools:ignore="NestedWeights,RtlHardcoded,RtlSymmetry"
|
|
|
tools:text="@string/group_s" />
|
|
tools:text="@string/group_s" />
|
|
|
|
|
|
|
|
- <io.legado.app.ui.widget.text.AccentBgTextView
|
|
|
|
|
- android:id="@+id/tv_change_group"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_marginStart="8dp"
|
|
|
|
|
- android:paddingLeft="5dp"
|
|
|
|
|
- android:paddingRight="5dp"
|
|
|
|
|
- android:text="@string/change_group"
|
|
|
|
|
- android:textSize="13sp"
|
|
|
|
|
- app:radius="2dp" />
|
|
|
|
|
-
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
@@ -359,37 +379,20 @@
|
|
|
</io.legado.app.ui.widget.NoChildScrollNestedScrollView>
|
|
</io.legado.app.ui.widget.NoChildScrollNestedScrollView>
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:id="@+id/fl_action"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
|
|
+ <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
|
|
|
+ android:id="@+id/btn_read"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="bottom"
|
|
|
|
|
- android:background="@color/background_theme"
|
|
|
|
|
- android:orientation="horizontal"
|
|
|
|
|
- android:padding="12dp">
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/btn_shelf"
|
|
|
|
|
- style="@style/Widget.Material3.Button.OutlinedButton"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="50dp"
|
|
|
|
|
- android:layout_marginEnd="6dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:text="@string/remove_from_bookshelf"
|
|
|
|
|
- android:textSize="15sp"
|
|
|
|
|
- app:iconPadding="0dp" />
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.button.MaterialButton
|
|
|
|
|
- android:id="@+id/btn_read"
|
|
|
|
|
- style="@style/Widget.Material3.Button"
|
|
|
|
|
- android:layout_width="0dp"
|
|
|
|
|
- android:layout_height="50dp"
|
|
|
|
|
- android:layout_marginStart="6dp"
|
|
|
|
|
- android:layout_weight="1"
|
|
|
|
|
- android:text="@string/reading"
|
|
|
|
|
- android:textSize="15sp"
|
|
|
|
|
- app:iconPadding="0dp" />
|
|
|
|
|
-
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
|
+ android:layout_gravity="bottom|end"
|
|
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
|
|
+ android:layout_marginBottom="24dp"
|
|
|
|
|
+ android:text="@string/reading"
|
|
|
|
|
+ android:textColor="?attr/colorOnPrimary"
|
|
|
|
|
+ android:contentDescription="@string/reading"
|
|
|
|
|
+ app:iconGravity="textStart"
|
|
|
|
|
+ app:icon="@drawable/ic_bottom_books"
|
|
|
|
|
+ app:backgroundTint="?attr/colorSecondary"
|
|
|
|
|
+ app:iconTint="?attr/colorOnPrimary"
|
|
|
|
|
+ app:layout_behavior="com.google.android.material.behavior.HideBottomViewOnScrollBehavior" />
|
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|