You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123 lines
4.6 KiB
123 lines
4.6 KiB
<?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"
|
|
app:layout_constraintBottom_toTopOf="@+id/ll_info" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/ll_info"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="top"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_name"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_name"
|
|
app:layout_constraintBottom_toTopOf="@+id/tv_content_type">
|
|
|
|
<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_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:layout_constraintBottom_toTopOf="@id/tv_in_bookshelf"
|
|
app:radius="2dp"
|
|
tools:ignore="HardcodedText,RtlHardcoded" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_in_bookshelf"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:paddingStart="5dp"
|
|
android:paddingEnd="5dp"
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_name"
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_content_type"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
<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> |