2015-11-04 12:54:07 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2021-06-09 17:16:59 -04:00
|
|
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-02-23 12:42:10 -05:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2016-07-02 08:12:52 -04:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2021-06-09 17:16:59 -04:00
|
|
|
android:id="@+id/container"
|
2016-07-02 08:12:52 -04:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-06-09 17:16:59 -04:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
app:cardBackgroundColor="?android:attr/colorBackground"
|
2021-06-19 15:45:16 -04:00
|
|
|
app:cardElevation="0dp"
|
|
|
|
app:cardForegroundColor="@color/draggable_card_foreground">
|
2016-07-02 08:12:52 -04:00
|
|
|
|
2021-06-09 17:16:59 -04:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
2021-06-19 15:45:16 -04:00
|
|
|
android:layout_height="wrap_content">
|
2015-11-04 12:54:07 -05:00
|
|
|
|
2021-06-09 17:16:59 -04:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/reorder"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_gravity="start"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
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"
|
|
|
|
tools:ignore="ContentDescription" />
|
2016-07-02 08:12:52 -04:00
|
|
|
|
2021-06-09 17:16:59 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_full_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_toEndOf="@id/reorder"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2021-10-03 12:32:04 -04:00
|
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
2021-06-09 17:16:59 -04:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/download_progress_text"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/reorder"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="Manga title" />
|
2015-11-04 12:54:07 -05:00
|
|
|
|
2021-06-09 17:16:59 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/chapter_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_toEndOf="@id/reorder"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2021-10-03 12:32:04 -04:00
|
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
|
|
android:textSize="12sp"
|
2021-06-09 17:16:59 -04:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/manga_source"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/manga_full_title"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/manga_full_title"
|
|
|
|
tools:text="Chapter Title" />
|
2020-02-23 12:42:10 -05:00
|
|
|
|
2021-06-09 17:16:59 -04:00
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
|
|
|
android:id="@+id/download_progress"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/menu"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/reorder"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/chapter_title" />
|
2020-02-23 12:42:10 -05:00
|
|
|
|
2021-06-09 17:16:59 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/download_progress_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_toEndOf="@id/manga_full_title"
|
|
|
|
android:maxLines="1"
|
2021-10-03 12:32:04 -04:00
|
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="12sp"
|
2021-06-09 17:16:59 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/manga_full_title"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/menu"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/manga_full_title"
|
|
|
|
tools:text="0/10" />
|
2021-01-23 10:15:30 -05:00
|
|
|
|
2021-06-09 17:16:59 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/manga_source"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_toEndOf="@id/chapter_title"
|
|
|
|
android:maxLines="1"
|
2021-10-03 12:32:04 -04:00
|
|
|
android:textAppearance="?attr/textAppearanceBody2"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="12sp"
|
2021-06-09 17:16:59 -04:00
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/chapter_title"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/menu"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/chapter_title"
|
|
|
|
tools:text="Manga Source" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/menu"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_toEndOf="@id/download_progress_text"
|
2021-06-19 15:45:16 -04:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-06-09 17:16:59 -04:00
|
|
|
android:contentDescription="@string/action_menu"
|
|
|
|
android:paddingHorizontal="10dp"
|
|
|
|
android:paddingVertical="16dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/ic_overflow_24dp"
|
|
|
|
app:tint="?attr/colorOnBackground" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2015-11-04 12:54:07 -05:00
|
|
|
|
2021-06-09 17:16:59 -04:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|