|
|
|
@ -7,8 +7,8 @@ |
|
|
|
|
|
|
|
|
|
<io.legado.app.ui.widget.image.CoverImageView |
|
|
|
|
android:id="@+id/iv_cover" |
|
|
|
|
android:layout_width="80dp" |
|
|
|
|
android:layout_height="110dp" |
|
|
|
|
android:layout_width="66dp" |
|
|
|
|
android:layout_height="90dp" |
|
|
|
|
android:layout_margin="8dp" |
|
|
|
|
android:contentDescription="@string/img_cover" |
|
|
|
|
android:scaleType="centerCrop" |
|
|
|
@ -28,23 +28,25 @@ |
|
|
|
|
android:text="@string/app_name" |
|
|
|
|
android:textColor="@color/primaryText" |
|
|
|
|
android:textSize="16sp" |
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/ll_info" |
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/iv_cover" |
|
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/ll_info" /> |
|
|
|
|
app:layout_constraintTop_toTopOf="parent" /> |
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:id="@+id/ll_info" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_margin="8dp" |
|
|
|
|
android:gravity="top" |
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_name" |
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/tv_content_type" |
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/iv_cover" |
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_name" |
|
|
|
|
app:layout_constraintBottom_toTopOf="@+id/tv_content_type"> |
|
|
|
|
app:layout_constraintRight_toLeftOf="@+id/btn_download"> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/tv_size" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:ellipsize="end" |
|
|
|
|
android:lines="1" |
|
|
|
@ -53,7 +55,7 @@ |
|
|
|
|
tools:text="128kb" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:ellipsize="end" |
|
|
|
|
android:lines="1" |
|
|
|
@ -63,7 +65,7 @@ |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/tv_date" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:ellipsize="end" |
|
|
|
|
android:lines="1" |
|
|
|
@ -71,53 +73,34 @@ |
|
|
|
|
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:layout_margin="8dp" |
|
|
|
|
android:maxWidth="50dp" |
|
|
|
|
android:maxLines="1" |
|
|
|
|
android:singleLine="true" |
|
|
|
|
android:paddingStart="5dp" |
|
|
|
|
android:paddingEnd="5dp" |
|
|
|
|
android:text="TXT" |
|
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/tv_name" |
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
|
app:layout_constraintLeft_toRightOf="@+id/iv_cover" |
|
|
|
|
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" |
|
|
|
|
<io.legado.app.ui.widget.text.AccentStrokeTextView |
|
|
|
|
android:id="@+id/btn_download" |
|
|
|
|
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" |
|
|
|
|
android:padding="6dp" |
|
|
|
|
android:text="@string/nb_file_add_shelf" |
|
|
|
|
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="加入书架" /> |
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_name" |
|
|
|
|
tools:text="加入书架" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |