|
|
|
@ -1,63 +1,53 @@
|
|
|
|
<?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="12dp">
|
|
|
|
android:paddingVertical="6dp"
|
|
|
|
|
|
|
|
android:paddingHorizontal="8dp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/card_cover"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
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
|
|
|
|
<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
|
|
|
|
android:id="@+id/imageView_cover"
|
|
|
|
android:id="@+id/imageView_cover"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="@dimen/manga_list_details_item_height"
|
|
|
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Kotatsu.Cover"
|
|
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<LinearLayout
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_margin="16dp"
|
|
|
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/title_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/textView_chapters"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card_cover"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintVertical_chainStyle="packed">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
|
|
|
|
android:textAppearance="?attr/textAppearanceTitleMedium"
|
|
|
|
tools:text="@tools:sample/lorem" />
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/badge"
|
|
|
|
android:id="@+id/badge"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_gravity="top|end"
|
|
|
|
android:background="@drawable/badge"
|
|
|
|
android:background="@drawable/badge"
|
|
|
|
android:paddingHorizontal="6dp"
|
|
|
|
android:paddingHorizontal="6dp"
|
|
|
|
android:paddingVertical="2dp"
|
|
|
|
android:paddingVertical="2dp"
|
|
|
|
@ -70,31 +60,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_chapters"
|
|
|
|
android:id="@+id/textView_chapters"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
|
|
|
android:ellipsize="none"
|
|
|
|
android:ellipsize="none"
|
|
|
|
android:lineSpacingExtra="4sp"
|
|
|
|
android:lineSpacingExtra="4sp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card_cover"
|
|
|
|
tools:text="@tools:sample/lorem[10]" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/title_container"
|
|
|
|
|
|
|
|
tools:text="@tools:sample/lorem[25]" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_truncated"
|
|
|
|
android:id="@+id/textView_truncated"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
|
|
|
|
android:textColor="?android:textColorHint"
|
|
|
|
android:textColor="?android:textColorHint"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/card_cover"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_chapters"
|
|
|
|
|
|
|
|
tools:text="@string/_and_x_more" />
|
|
|
|
tools:text="@string/_and_x_more" />
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|