|
|
|
@ -1,37 +1,31 @@
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
app:cardCornerRadius="16dp">
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
|
|
|
android:paddingBottom="6dp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/card_cover"
|
|
|
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
|
|
|
android:layout_margin="8dp"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintDimensionRatio="h,1:1"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintVertical_bias="0.0">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
|
|
|
android:id="@+id/imageView_cover"
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:contentDescription="@null"
|
|
|
|
android:minHeight="@dimen/manga_list_details_item_height"
|
|
|
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
|
|
|
android:padding="4dp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
|
|
|
|
android:id="@+id/imageView_cover"
|
|
|
|
|
|
|
|
android:layout_width="92dp"
|
|
|
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
|
|
|
|
app:layout_constraintDimensionRatio="H,13:18"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Kotatsu.Cover"
|
|
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
@ -41,9 +35,9 @@
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodyLarge"
|
|
|
|
android:textAppearance="?attr/textAppearanceTitleSmall"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card_cover"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="@tools:sample/lorem" />
|
|
|
|
tools:text="@tools:sample/lorem" />
|
|
|
|
|
|
|
|
|
|
|
|
@ -55,7 +49,7 @@
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card_cover"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_title" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_title" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
@ -69,7 +63,7 @@
|
|
|
|
android:singleLine="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/textView_percent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/textView_percent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card_cover"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/progressBar"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/progressBar"
|
|
|
|
tools:text="@string/manga_downloading_" />
|
|
|
|
tools:text="@string/manga_downloading_" />
|
|
|
|
|
|
|
|
|
|
|
|
@ -77,10 +71,10 @@
|
|
|
|
android:id="@+id/textView_percent"
|
|
|
|
android:id="@+id/textView_percent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/textView_status"
|
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/textView_status"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
|
|
|
tools:text="25%" />
|
|
|
|
tools:text="25%" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
@ -94,8 +88,36 @@
|
|
|
|
android:maxLines="4"
|
|
|
|
android:maxLines="4"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card_cover"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_status"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_status"
|
|
|
|
tools:text="@tools:sample/lorem[3]" />
|
|
|
|
tools:text="@tools:sample/lorem[3]" />
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<Button
|
|
|
|
|
|
|
|
android:id="@+id/button_resume"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:text="@string/try_again"
|
|
|
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_cancel"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_details"
|
|
|
|
|
|
|
|
app:layout_constraintVertical_bias="1"
|
|
|
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
|
|
|
android:id="@+id/button_cancel"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:text="@android:string/cancel"
|
|
|
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_details"
|
|
|
|
|
|
|
|
app:layout_constraintVertical_bias="1"
|
|
|
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|