106 lines
3.9 KiB
XML
106 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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:background="?attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:scrollbars="none">
|
|
|
|
<!-- 封面图片 -->
|
|
<io.legado.app.ui.widget.image.CoverImageView
|
|
android:id="@+id/iv_cover"
|
|
android:layout_width="80dp"
|
|
android:layout_height="110dp"
|
|
android:contentDescription="@string/img_cover"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/image_cover_default"
|
|
android:transitionName="img_cover"
|
|
tools:ignore="UnusedAttribute" />
|
|
|
|
<!-- 右侧内容区域 -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<!-- 标题行 -->
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<!-- 书架内标记 -->
|
|
<io.legado.app.ui.widget.image.CircleImageView
|
|
android:id="@+id/iv_in_bookshelf"
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp"
|
|
android:layout_marginEnd="4dp"
|
|
android:scaleType="centerCrop"
|
|
android:src="@color/md_green_600"
|
|
android:visibility="invisible"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true"/>
|
|
|
|
<!-- 书名 -->
|
|
<TextView
|
|
android:id="@+id/tv_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toEndOf="@id/iv_in_bookshelf"
|
|
android:layout_toStartOf="@id/bv_originCount"
|
|
android:singleLine="true"
|
|
android:text="@string/app_name"
|
|
style="@style/TextAppearance.AppCompat.Medium" />
|
|
|
|
<!-- 来源计数 -->
|
|
<io.legado.app.ui.widget.text.BadgeView
|
|
android:id="@+id/bv_originCount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerVertical="true"/>
|
|
</RelativeLayout>
|
|
|
|
<!-- 作者 -->
|
|
<TextView
|
|
android:id="@+id/tv_author"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="3dp"
|
|
android:ellipsize="end"
|
|
android:lines="1"
|
|
android:text="@string/author"
|
|
android:textSize="12sp" />
|
|
|
|
<!-- 分类标签 -->
|
|
<io.legado.app.ui.widget.LabelsBar
|
|
android:id="@+id/ll_kind"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal" />
|
|
|
|
<!-- 最后阅读 -->
|
|
<TextView
|
|
android:id="@+id/tv_lasted"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="3dp"
|
|
android:ellipsize="end"
|
|
android:lines="1"
|
|
android:text="@string/last_read"
|
|
android:textSize="12sp" />
|
|
|
|
<!-- 简介 -->
|
|
<io.legado.app.ui.widget.text.MultilineTextView
|
|
android:id="@+id/tv_introduce"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:text="@string/book_intro"
|
|
android:textSize="12sp" />
|
|
</LinearLayout>
|
|
</LinearLayout> |