pull/423/head
gedoor 4 years ago
parent 7d3b88a390
commit 796eb7b627
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/config/BgTextConfigDialog.kt
  2. 51
      app/src/main/res/layout/item_bookshelf_grid.xml
  3. 6
      app/src/main/res/layout/view_no_book.xml

@ -177,7 +177,7 @@ class BgTextConfigDialog : BaseDialogFragment(), FileChooserDialog.CallBack {
postEvent(EventBus.UP_CONFIG, true) postEvent(EventBus.UP_CONFIG, true)
dismiss() dismiss()
} else { } else {
toast("数量是最少,不能删除.") toast("数量是最少,不能删除.")
} }
} }
} }

@ -4,46 +4,30 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingTop="2dp" android:paddingTop="8dp"
android:paddingRight="10dp" android:paddingRight="8dp"
android:paddingLeft="10dp" android:paddingLeft="8dp"
android:paddingBottom="4dp"> android:paddingBottom="4dp">
<io.legado.app.ui.widget.ShadowLayout <io.legado.app.ui.widget.image.CoverImageView
android:id="@+id/bg_cover" android:id="@+id/iv_cover"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_margin="8dp"
android:layout_marginTop="8dp" android:scaleType="centerCrop"
tools:ignore="UnusedAttribute" android:src="@drawable/image_cover_default"
android:transitionName="img_cover"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:shadowColor="#16000000" tools:ignore="UnusedAttribute" />
app:shadowShape="rectangle"
app:shadowDx="1dp"
app:shadowDy="3dp"
app:shadowRadius="4dp"
app:shadowSide="all">
<io.legado.app.ui.widget.image.CoverImageView
android:id="@+id/iv_cover"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/image_cover_default"
android:transitionName="img_cover"
tools:ignore="UnusedAttribute" />
</io.legado.app.ui.widget.ShadowLayout>
<io.legado.app.ui.widget.text.BadgeView <io.legado.app.ui.widget.text.BadgeView
android:id="@+id/bv_unread" android:id="@+id/bv_unread"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="right" android:layout_gravity="right"
android:layout_margin="5dp"
android:includeFontPadding="false" android:includeFontPadding="false"
app:layout_constraintTop_toTopOf="@+id/bg_cover" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintRight_toRightOf="@+id/bg_cover" app:layout_constraintRight_toRightOf="parent"
tools:ignore="RtlHardcoded" /> tools:ignore="RtlHardcoded" />
<io.legado.app.ui.widget.anima.RotateLoading <io.legado.app.ui.widget.anima.RotateLoading
@ -52,9 +36,10 @@
android:layout_height="22dp" android:layout_height="22dp"
android:layout_gravity="right" android:layout_gravity="right"
android:visibility="invisible" android:visibility="invisible"
app:layout_constraintTop_toTopOf="@+id/bg_cover" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintRight_toRightOf="@+id/bg_cover" app:layout_constraintRight_toRightOf="parent"
app:loading_width="2dp" app:loading_width="2dp"
app:hide_mode="invisible"
tools:ignore="RtlHardcoded" /> tools:ignore="RtlHardcoded" />
<TextView <TextView
@ -70,9 +55,9 @@
android:text="@string/book_name" android:text="@string/book_name"
android:textColor="@color/primaryText" android:textColor="@color/primaryText"
android:textSize="12sp" android:textSize="12sp"
app:layout_constraintLeft_toLeftOf="@+id/bg_cover" app:layout_constraintLeft_toLeftOf="@+id/iv_cover"
app:layout_constraintRight_toRightOf="@+id/bg_cover" app:layout_constraintRight_toRightOf="@+id/iv_cover"
app:layout_constraintTop_toBottomOf="@+id/bg_cover" app:layout_constraintTop_toBottomOf="@+id/iv_cover"
tools:ignore="RtlHardcoded,RtlSymmetry" /> tools:ignore="RtlHardcoded,RtlSymmetry" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
</androidx.constraintlayout.widget.ConstraintLayout>
Loading…
Cancel
Save