|
@@ -4,10 +4,9 @@
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
app:strokeWidth="0dp"
|
|
app:strokeWidth="0dp"
|
|
|
- app:cardBackgroundColor="?attr/colorSurfaceContainerLow"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_marginHorizontal="8dp"
|
|
android:layout_marginHorizontal="8dp"
|
|
|
- android:layout_marginVertical="6dp">
|
|
|
|
|
|
|
+ android:layout_marginVertical="4dp">
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
android:id="@+id/ll_content"
|
|
android:id="@+id/ll_content"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
@@ -83,13 +82,11 @@
|
|
|
android:id="@+id/tv_name"
|
|
android:id="@+id/tv_name"
|
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="4dp"
|
|
|
|
|
android:singleLine="true"
|
|
android:singleLine="true"
|
|
|
android:text="@string/app_name"
|
|
android:text="@string/app_name"
|
|
|
android:textSize="16sp"
|
|
android:textSize="16sp"
|
|
|
android:textStyle="bold"
|
|
android:textStyle="bold"
|
|
|
app:layout_constraintEnd_toStartOf="@id/cd_count"
|
|
app:layout_constraintEnd_toStartOf="@id/cd_count"
|
|
|
- app:layout_constraintHorizontal_bias="0.0"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
@@ -121,77 +118,48 @@
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
- <HorizontalScrollView
|
|
|
|
|
- android:id="@+id/horizontal_scroll"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/tv_author"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="2dp"
|
|
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
|
|
- android:scrollbars="none"
|
|
|
|
|
- android:overScrollMode="never">
|
|
|
|
|
-
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_author"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:textColor="?attr/colorSecondary"
|
|
|
|
|
- android:lines="1"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- android:text="@string/author"
|
|
|
|
|
- android:textSize="12sp" />
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_author_kind"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:paddingHorizontal="4dp"
|
|
|
|
|
- android:textColor="?attr/colorSecondary"
|
|
|
|
|
- android:text=" | "
|
|
|
|
|
- android:textSize="12sp"/>
|
|
|
|
|
-
|
|
|
|
|
- <TextView
|
|
|
|
|
- android:id="@+id/tv_kind"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:lines="1"
|
|
|
|
|
- android:paddingEnd="32dp"
|
|
|
|
|
- android:textColor="?attr/colorSecondary"
|
|
|
|
|
- android:textSize="12sp"
|
|
|
|
|
- android:ellipsize="end"
|
|
|
|
|
- android:singleLine="true"
|
|
|
|
|
- tools:ignore="RtlSymmetry" />
|
|
|
|
|
-
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
-
|
|
|
|
|
- </HorizontalScrollView>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ android:textColor="?attr/colorSecondary"
|
|
|
|
|
+ android:lines="1"
|
|
|
|
|
+ android:singleLine="true"
|
|
|
|
|
+ android:text="@string/author"
|
|
|
|
|
+ android:textSize="12sp" />
|
|
|
|
|
|
|
|
<!-- 最后阅读 -->
|
|
<!-- 最后阅读 -->
|
|
|
<TextView
|
|
<TextView
|
|
|
android:id="@+id/tv_lasted"
|
|
android:id="@+id/tv_lasted"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="3dp"
|
|
|
|
|
android:ellipsize="end"
|
|
android:ellipsize="end"
|
|
|
android:lines="1"
|
|
android:lines="1"
|
|
|
android:text="@string/last_read"
|
|
android:text="@string/last_read"
|
|
|
- android:textSize="12sp" />
|
|
|
|
|
|
|
+ android:textSize="11sp" />
|
|
|
|
|
|
|
|
<!-- 简介 -->
|
|
<!-- 简介 -->
|
|
|
<TextView
|
|
<TextView
|
|
|
android:id="@+id/tv_introduce"
|
|
android:id="@+id/tv_introduce"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginVertical="3dp"
|
|
|
|
|
android:maxLines="2"
|
|
android:maxLines="2"
|
|
|
android:ellipsize="end"
|
|
android:ellipsize="end"
|
|
|
android:text="@string/book_intro"
|
|
android:text="@string/book_intro"
|
|
|
- android:textSize="12sp" />
|
|
|
|
|
|
|
+ android:textSize="11sp" />
|
|
|
|
|
+
|
|
|
|
|
+ <HorizontalScrollView
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:scrollbars="none"
|
|
|
|
|
+ android:layout_marginTop="2dp">
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:id="@+id/kind_container"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
|
+ android:orientation="horizontal" />
|
|
|
|
|
+ </HorizontalScrollView>
|
|
|
|
|
+
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</com.google.android.material.card.MaterialCardView>
|