parent
e894038271
commit
acbd2b11d1
@ -1,67 +1,90 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
<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:id="@+id/cv_content" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:orientation="vertical" |
||||
android:paddingTop="8dp" |
||||
android:paddingLeft="8dp" |
||||
android:paddingRight="8dp"> |
||||
android:clickable="true" |
||||
android:focusable="true" |
||||
tools:ignore="UnusedAttribute"> |
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout |
||||
|
||||
<LinearLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content"> |
||||
android:layout_height="wrap_content" |
||||
android:orientation="vertical" |
||||
android:paddingTop="8dp" |
||||
android:paddingLeft="8dp" |
||||
android:paddingRight="8dp" |
||||
app:layout_constraintTop_toTopOf="parent"> |
||||
|
||||
<io.legado.app.ui.widget.image.CoverImageView |
||||
android:id="@+id/iv_cover" |
||||
<androidx.constraintlayout.widget.ConstraintLayout |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_margin="8dp" |
||||
android:scaleType="centerCrop" |
||||
android:src="@drawable/image_cover_default" |
||||
android:transitionName="img_cover" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:ignore="UnusedAttribute" /> |
||||
android:layout_height="wrap_content"> |
||||
|
||||
<io.legado.app.ui.widget.image.CoverImageView |
||||
android:id="@+id/iv_cover" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_margin="8dp" |
||||
android:scaleType="centerCrop" |
||||
android:src="@drawable/image_cover_default" |
||||
android:transitionName="img_cover" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:ignore="UnusedAttribute" /> |
||||
|
||||
<io.legado.app.ui.widget.text.BadgeView |
||||
android:id="@+id/bv_unread" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="right" |
||||
android:includeFontPadding="false" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:ignore="RtlHardcoded" /> |
||||
|
||||
<io.legado.app.ui.widget.anima.RotateLoading |
||||
android:id="@+id/rl_loading" |
||||
android:layout_width="22dp" |
||||
android:layout_height="22dp" |
||||
android:layout_gravity="right" |
||||
android:visibility="invisible" |
||||
app:hide_mode="invisible" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
app:loading_width="2dp" |
||||
tools:ignore="RtlHardcoded" /> |
||||
|
||||
<io.legado.app.ui.widget.text.BadgeView |
||||
android:id="@+id/bv_unread" |
||||
android:layout_width="wrap_content" |
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_name" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="right" |
||||
android:layout_marginTop="6dp" |
||||
android:ellipsize="end" |
||||
android:gravity="top|center_horizontal" |
||||
android:includeFontPadding="false" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:ignore="RtlHardcoded" /> |
||||
|
||||
<io.legado.app.ui.widget.anima.RotateLoading |
||||
android:id="@+id/rl_loading" |
||||
android:layout_width="22dp" |
||||
android:layout_height="22dp" |
||||
android:layout_gravity="right" |
||||
android:visibility="invisible" |
||||
app:hide_mode="invisible" |
||||
app:layout_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
app:loading_width="2dp" |
||||
tools:ignore="RtlHardcoded" /> |
||||
android:lines="2" |
||||
android:text="@string/book_name" |
||||
android:textColor="@color/primaryText" |
||||
android:textSize="12sp" |
||||
tools:ignore="RtlHardcoded,RtlSymmetry" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
</LinearLayout> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_name" |
||||
<View |
||||
android:id="@+id/vw_foreground" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:layout_marginTop="6dp" |
||||
android:ellipsize="end" |
||||
android:gravity="top|center_horizontal" |
||||
android:includeFontPadding="false" |
||||
android:lines="2" |
||||
android:text="@string/book_name" |
||||
android:textColor="@color/primaryText" |
||||
android:textSize="12sp" |
||||
tools:ignore="RtlHardcoded,RtlSymmetry" /> |
||||
android:layout_height="0dp" |
||||
android:background="?android:attr/selectableItemBackground" |
||||
app:layout_constraintBottom_toBottomOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
app:layout_constraintVertical_bias="0.0" |
||||
tools:layout_editor_absoluteX="0dp" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
||||
|
||||
</LinearLayout> |
||||
|
||||
|
||||
|
Loading…
Reference in new issue