139 lines
5.9 KiB
XML
139 lines
5.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.cardview.widget.CardView 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/holder"
|
|
style="@style/Theme.Widget.CardView.Item"
|
|
android:padding="0dp">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/reorder"
|
|
android:layout_width="@dimen/material_component_lists_single_line_with_avatar_height"
|
|
android:layout_height="0dp"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_gravity="start"
|
|
android:scaleType="center"
|
|
android:alpha="1"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_drag_handle_24dp"
|
|
app:tint="?android:attr/textColorHint" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/infoLayout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="80dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/reorder"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/cover"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:contentDescription="@string/description_cover"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintDimensionRatio="h,3:2"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:src="@mipmap/ic_launcher" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/cover"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:textAppearance="@style/TextAppearance.Medium"
|
|
tools:text="Title" />
|
|
|
|
<TextView
|
|
android:id="@+id/subtitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:maxLines="2"
|
|
tools:text="Subtitle" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="40dp"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/reorder"
|
|
app:layout_constraintTop_toBottomOf="@+id/infoLayout">
|
|
|
|
<ImageButton
|
|
android:id="@+id/remove"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/action_delete"
|
|
android:padding="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/download"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_delete_24dp"
|
|
app:tint="?android:attr/textColorPrimary" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/download"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/pref_download_new"
|
|
android:padding="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/get_chapter_updates"
|
|
app:layout_constraintStart_toEndOf="@+id/remove"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_get_app_24dp"
|
|
app:tint="?android:attr/textColorPrimary" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/get_chapter_updates"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/fetch_chapter_updates"
|
|
android:padding="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@+id/download"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_sync_24dp"
|
|
app:tint="?android:attr/textColorPrimary" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|