From dabca5f09e0d393d2ea77e483c72561341385cb0 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 3 May 2020 22:29:09 -0400 Subject: [PATCH] Lighter weight method of rounding cover art --- .../ui/browse/source/browse/SourceItem.kt | 3 ++ .../tachiyomi/ui/library/LibraryItem.kt | 3 ++ .../ui/manga/info/MangaInfoController.kt | 3 ++ .../main/res/drawable/rounded_rectangle.xml | 6 ++++ .../res/layout-land/manga_info_controller.xml | 31 ++++++------------- .../main/res/layout/manga_info_controller.xml | 25 +++++---------- app/src/main/res/layout/source_grid_item.xml | 7 ++--- 7 files changed, 34 insertions(+), 44 deletions(-) create mode 100644 app/src/main/res/drawable/rounded_rectangle.xml diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/SourceItem.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/SourceItem.kt index e3f89c896..414523716 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/SourceItem.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/browse/SourceItem.kt @@ -34,6 +34,9 @@ class SourceItem(val manga: Manga, private val catalogueAsList: Preference + + + + diff --git a/app/src/main/res/layout-land/manga_info_controller.xml b/app/src/main/res/layout-land/manga_info_controller.xml index 59633d064..ca1b1a321 100644 --- a/app/src/main/res/layout-land/manga_info_controller.xml +++ b/app/src/main/res/layout-land/manga_info_controller.xml @@ -11,45 +11,32 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - - - - + app:layout_constraintVertical_bias="0.0" /> + android:layout_height="match_parent" + android:padding="16dp"> - - - - - + app:layout_constraintTop_toTopOf="parent" /> - + android:background="@drawable/rounded_rectangle"> @@ -120,6 +119,6 @@ android:layout_gravity="center" android:visibility="gone" /> - +