pull/34/head
kunfei 5 years ago
parent 2d8992122f
commit 34434ae02b
  1. 1
      app/src/main/res/layout-land/activity_book_info.xml
  2. 24
      app/src/main/res/layout/activity_book_info.xml

@ -145,6 +145,7 @@
android:id="@+id/view_info" android:id="@+id/view_info"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="vertical" android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@+id/iv_cover" app:layout_constraintTop_toBottomOf="@+id/iv_cover"
app:layout_constraintBottom_toTopOf="@+id/fl_action" app:layout_constraintBottom_toTopOf="@+id/fl_action"

@ -13,23 +13,15 @@
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:title="@string/book_info" /> app:title="@string/book_info" />
<androidx.cardview.widget.CardView
android:id="@+id/iv_cover_s"
android:layout_width="wrap_content"
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">
<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="86dp" android:layout_width="86dp"
android:layout_height="120dp" android:layout_height="120dp"
android:layout_margin="10dp"
android:scaleType="centerCrop" android:scaleType="centerCrop"
android:src="@drawable/img_cover_default" /> android:src="@drawable/img_cover_default"
app:layout_constraintLeft_toLeftOf="parent"
</androidx.cardview.widget.CardView> app:layout_constraintTop_toBottomOf="@+id/title_bar" />
<LinearLayout <LinearLayout
android:id="@+id/ll_book_info" android:id="@+id/ll_book_info"
@ -39,10 +31,9 @@
android:layout_marginRight="12dp" android:layout_marginRight="12dp"
android:minHeight="115dp" android:minHeight="115dp"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="8dp" app:layout_constraintLeft_toRightOf="@+id/iv_cover"
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"> app:layout_constraintTop_toTopOf="@+id/iv_cover">
<TextView <TextView
android:id="@+id/tv_name" android:id="@+id/tv_name"
@ -146,8 +137,9 @@
android:id="@+id/view_info" android:id="@+id/view_info"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="vertical" android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@+id/ll_book_info"> app:layout_constraintTop_toBottomOf="@+id/iv_cover">
<View <View
android:layout_width="match_parent" android:layout_width="match_parent"

Loading…
Cancel
Save