From 84cc13d169766c36d13f5dcdb94510488a489bf3 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 11 Sep 2019 12:22:36 +0800 Subject: [PATCH] up --- .../main/res/layout/activity_book_info.xml | 99 +++++++++---------- app/src/main/res/layout/view_read_menu.xml | 2 + 2 files changed, 51 insertions(+), 50 deletions(-) diff --git a/app/src/main/res/layout/activity_book_info.xml b/app/src/main/res/layout/activity_book_info.xml index a54649937..f5491461b 100644 --- a/app/src/main/res/layout/activity_book_info.xml +++ b/app/src/main/res/layout/activity_book_info.xml @@ -2,32 +2,31 @@ + android:layout_height="match_parent" + android:orientation="vertical"> + app:layout_constraintTop_toTopOf="parent" + app:title="@string/book_info" /> + android:layout_height="wrap_content" + android:layout_margin="12dp" + app:cardCornerRadius="5.0dp" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintTop_toBottomOf="@+id/title_bar"> + android:src="@drawable/img_cover_default" /> @@ -37,19 +36,19 @@ android:layout_height="wrap_content" android:layout_marginLeft="12dp" android:layout_marginRight="6dp" - android:orientation="vertical" android:minHeight="115dp" + android:orientation="vertical" android:paddingBottom="8dp" - app:layout_constraintTop_toTopOf="@+id/iv_cover_s" app:layout_constraintLeft_toRightOf="@+id/iv_cover_s" - app:layout_constraintRight_toRightOf="parent"> + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="@+id/iv_cover_s"> @@ -58,8 +57,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="4dp" - android:textSize="14sp" - android:singleLine="true" /> + android:singleLine="true" + android:textSize="14sp" /> + android:orientation="horizontal" + android:visibility="gone"> + app:layout_constraintRight_toRightOf="@id/tv_name" /> + android:layout_height="wrap_content" + android:orientation="vertical" + app:layout_constraintTop_toBottomOf="@+id/ll_book_info"> + android:layout_height="wrap_content" + android:padding="8dp" + android:text="简介" + android:textColor="@color/tv_text_default" + android:textSize="16sp" /> @@ -180,10 +179,10 @@ + android:layout_height="wrap_content" + android:orientation="vertical" + app:layout_constraintTop_toBottomOf="@+id/view_info"> + android:layout_height="wrap_content" + android:orientation="horizontal"> + android:layout_height="wrap_content" + android:layout_weight="1.0" + android:paddingLeft="8dp" + android:paddingTop="8dp" + android:text="目录" + android:textColor="@color/tv_text_default" + android:textSize="16sp" /> @@ -212,11 +211,11 @@ android:id="@+id/ll_chapter_base_info" android:layout_width="match_parent" android:layout_height="36dp" - android:paddingLeft="10dp" - android:paddingRight="10dp" android:elevation="5dp" android:gravity="center_vertical" android:orientation="horizontal" + android:paddingLeft="10dp" + android:paddingRight="10dp" app:layout_constraintTop_toBottomOf="@+id/view_chapter"> @@ -257,8 +256,8 @@ android:id="@+id/rv_chapter_list" android:layout_width="match_parent" android:layout_height="0dp" - app:layout_constraintTop_toBottomOf="@+id/view_chapter" - app:layout_constraintBottom_toTopOf="@id/fl_action" /> + app:layout_constraintBottom_toTopOf="@id/fl_action" + app:layout_constraintTop_toBottomOf="@+id/view_chapter" /> + android:layout_height="1px" + android:background="@color/bg_divider_line" /> diff --git a/app/src/main/res/layout/view_read_menu.xml b/app/src/main/res/layout/view_read_menu.xml index 515353389..7ffd97ee2 100644 --- a/app/src/main/res/layout/view_read_menu.xml +++ b/app/src/main/res/layout/view_read_menu.xml @@ -26,6 +26,7 @@ android:layout_height="wrap_content" android:paddingLeft="10dp" android:paddingRight="10dp" + android:singleLine="true" android:text="@string/chapter" android:textSize="12sp" android:visibility="gone" /> @@ -36,6 +37,7 @@ android:layout_height="wrap_content" android:paddingLeft="10dp" android:paddingRight="10dp" + android:singleLine="true" android:text="@string/chapter" android:textSize="12sp" android:visibility="gone" />