Fix rounded corners in migration items
This commit is contained in:
parent
76b153346f
commit
af7b0ead98
@ -155,6 +155,9 @@ class MigrationProcessHolder(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val chapters = db.getChapters(manga).executeAsBlocking()
|
val chapters = db.getChapters(manga).executeAsBlocking()
|
||||||
|
// For rounded corners
|
||||||
|
badges.leftBadges.clipToOutline = true
|
||||||
|
badges.rightBadges.clipToOutline = true
|
||||||
badges.unreadText.isVisible = true
|
badges.unreadText.isVisible = true
|
||||||
badges.unreadText.text = chapters.size.toString()
|
badges.unreadText.text = chapters.size.toString()
|
||||||
val latestChapter = chapters.maxByOrNull { it.chapter_number }?.chapter_number ?: -1f
|
val latestChapter = chapters.maxByOrNull { it.chapter_number }?.chapter_number ?: -1f
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="2dp"
|
android:layout_margin="2dp"
|
||||||
android:background="@drawable/library_item_selector"
|
android:background="@drawable/library_item_selector"
|
||||||
@ -12,10 +12,10 @@
|
|||||||
<com.google.android.material.imageview.ShapeableImageView
|
<com.google.android.material.imageview.ShapeableImageView
|
||||||
android:id="@+id/thumbnail"
|
android:id="@+id/thumbnail"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="220dp"
|
android:layout_height="0dp"
|
||||||
android:scaleType="centerCrop"
|
android:scaleType="centerCrop"
|
||||||
android:foreground="@drawable/card_gradient_shape"
|
android:foreground="@drawable/card_gradient_shape"
|
||||||
app:layout_constraintDimensionRatio="w,2:3"
|
app:layout_constraintDimensionRatio="w,3:2"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user