pull/84/head
kunfei 5 years ago
parent 0ff380e183
commit 682712cc84
  1. 19
      app/src/main/res/layout/item_cover.xml

@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
<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="wrap_content"
android:padding="16dp"
android:padding="12dp"
android:clickable="true"
android:focusable="true"
tools:ignore="UnusedAttribute">
android:orientation="vertical">
<io.legado.app.ui.widget.image.CoverImageView
android:id="@+id/iv_cover"
@ -16,24 +15,18 @@
android:contentDescription="@string/img_cover"
android:scaleType="centerCrop"
android:transitionName="img_cover"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="UnusedAttribute" />
<TextView
android:id="@+id/tv_source"
android:layout_width="0dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:includeFontPadding="false"
android:layout_marginTop="8dp"
android:gravity="center"
android:singleLine="true"
android:text="@string/book_source"
android:textColor="@color/tv_text_default"
android:textSize="16sp"
app:layout_constraintLeft_toLeftOf="@+id/iv_cover"
app:layout_constraintRight_toRightOf="@+id/iv_cover"
app:layout_constraintTop_toBottomOf="@+id/iv_cover"
tools:ignore="RtlHardcoded,RtlSymmetry" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
Loading…
Cancel
Save