pull/51/head
parent
df4d4e628e
commit
2c9bae929b
@ -0,0 +1,91 @@ |
||||
<?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:id="@+id/cv_content" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:clickable="true" |
||||
android:focusable="true" |
||||
tools:ignore="UnusedAttribute"> |
||||
|
||||
<io.legado.app.ui.widget.image.CoverImageView |
||||
android:id="@+id/iv_cover" |
||||
android:layout_width="100dp" |
||||
android:layout_height="150dp" |
||||
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_constraintRight_toRightOf="parent" |
||||
app:layout_constraintTop_toTopOf="parent" |
||||
tools:ignore="UnusedAttribute" /> |
||||
|
||||
<FrameLayout |
||||
android:id="@+id/fl_has_new" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_margin="8dp" |
||||
app:layout_constraintRight_toRightOf="@id/iv_cover" |
||||
app:layout_constraintTop_toTopOf="@id/iv_cover"> |
||||
|
||||
<io.legado.app.ui.widget.BadgeView |
||||
android:id="@+id/bv_unread" |
||||
android:layout_width="wrap_content" |
||||
android:layout_height="wrap_content" |
||||
android:layout_gravity="right" |
||||
android:layout_margin="5dp" |
||||
android:includeFontPadding="false" |
||||
tools:ignore="RtlHardcoded" /> |
||||
|
||||
<io.legado.app.ui.widget.anima.RotateLoading |
||||
android:id="@+id/rl_loading" |
||||
android:layout_width="26dp" |
||||
android:layout_height="26dp" |
||||
android:layout_gravity="right" |
||||
android:visibility="invisible" |
||||
app:loading_color="@color/colorAccent" |
||||
app:loading_width="2dp" |
||||
tools:ignore="RtlHardcoded" /> |
||||
</FrameLayout> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_name" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:includeFontPadding="false" |
||||
android:gravity="center" |
||||
android:singleLine="true" |
||||
android:text="@string/book_name" |
||||
android:textColor="@color/tv_text_default" |
||||
android:textSize="16sp" |
||||
app:layout_constraintLeft_toLeftOf="@+id/iv_cover" |
||||
app:layout_constraintRight_toRightOf="@+id/iv_cover" |
||||
app:layout_constraintTop_toBottomOf="@+id/iv_cover" |
||||
tools:ignore="RtlHardcoded,RtlSymmetry" /> |
||||
|
||||
<TextView |
||||
android:id="@+id/tv_author" |
||||
android:layout_width="0dp" |
||||
android:layout_height="wrap_content" |
||||
android:includeFontPadding="false" |
||||
android:gravity="center" |
||||
android:maxLines="1" |
||||
android:text="@string/author" |
||||
android:textColor="@color/tv_text_secondary" |
||||
android:textSize="13sp" |
||||
app:layout_constraintLeft_toLeftOf="@+id/iv_cover" |
||||
app:layout_constraintRight_toRightOf="@+id/iv_cover" |
||||
app:layout_constraintTop_toBottomOf="@+id/tv_name" |
||||
tools:ignore="RtlSymmetry" /> |
||||
|
||||
<View |
||||
android:layout_width="match_parent" |
||||
android:layout_height="0.5dp" |
||||
android:background="@color/btn_bg_press" |
||||
app:layout_constraintBottom_toBottomOf="parent" /> |
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout> |
Loading…
Reference in new issue