| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?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"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <io.legado.app.ui.widget.image.CoverImageView
- android:id="@+id/iv_cover"
- android:layout_width="80dp"
- android:layout_height="110dp"
- android:layout_margin="8dp"
- android:contentDescription="@string/img_cover"
- android:scaleType="centerCrop"
- android:src="@drawable/image_cover_default"
- android:transitionName="img_cover"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="parent"
- tools:ignore="UnusedAttribute" />
- <TextView
- android:id="@+id/tv_name"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_margin="8dp"
- android:text="@string/app_name"
- android:textColor="@color/primaryText"
- android:textSize="16sp"
- app:layout_constraintStart_toEndOf="@+id/iv_cover"
- app:layout_constraintTop_toTopOf="parent" />
- <LinearLayout
- android:id="@+id/ll_info"
- android:layout_width="wrap_content"
- android:layout_height="0dp"
- android:layout_marginTop="8dp"
- android:gravity="top"
- android:orientation="horizontal"
- app:layout_constraintLeft_toLeftOf="@+id/tv_name"
- app:layout_constraintTop_toBottomOf="@+id/tv_name">
- <TextView
- android:id="@+id/tv_size"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:lines="1"
- android:textColor="@color/tv_text_summary"
- android:textSize="13sp"
- tools:text="128kb" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:lines="1"
- android:text="@string/separator"
- android:textColor="@color/tv_text_summary"
- android:textSize="11sp" />
- <TextView
- android:id="@+id/tv_date"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:lines="1"
- android:textColor="@color/tv_text_summary"
- android:textSize="13sp"
- tools:text="2022-12-7" />
- </LinearLayout>
- <io.legado.app.ui.widget.text.AccentBgTextView
- android:id="@+id/tv_content_type"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:layout_marginRight="15dp"
- android:maxWidth="50dp"
- android:maxLines="1"
- android:paddingStart="5dp"
- android:paddingEnd="5dp"
- android:text="TXT"
- app:layout_constraintLeft_toLeftOf="@+id/tv_name"
- app:layout_constraintTop_toBottomOf="@id/ll_info"
- app:radius="2dp"
- tools:ignore="HardcodedText,RtlHardcoded" />
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_margin="8dp"
- android:orientation="vertical"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintRight_toRightOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <io.legado.app.ui.widget.text.AccentStrokeTextView
- android:id="@+id/btn_download"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="8dp"
- android:padding="8dp"
- android:text="@string/nb_file_add_shelf"
- tools:text="加入书架" />
- </LinearLayout>
- </androidx.constraintlayout.widget.ConstraintLayout>
|