From 47bc1f7a9f19f03ed43eedc62e8e1b7357cee015 Mon Sep 17 00:00:00 2001 From: len Date: Fri, 29 Apr 2016 20:00:03 +0200 Subject: [PATCH] Remove RelativeLayout from covers for better performance --- app/build.gradle | 1 - .../ui/catalogue/CatalogueAdapter.kt | 15 +++--- .../ui/library/LibraryCategoryAdapter.kt | 9 ++-- .../tachiyomi/ui/library/LibraryHolder.kt | 2 +- .../main/res/layout/item_catalogue_grid.xml | 49 ++++++++----------- 5 files changed, 36 insertions(+), 40 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f843a08752..0b00194eb7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -107,7 +107,6 @@ dependencies { compile "com.android.support:design:$SUPPORT_LIBRARY_VERSION" compile "com.android.support:recyclerview-v7:$SUPPORT_LIBRARY_VERSION" compile "com.android.support:support-annotations:$SUPPORT_LIBRARY_VERSION" - compile "com.android.support:percent:$SUPPORT_LIBRARY_VERSION" compile "com.android.support:preference-v7:$SUPPORT_LIBRARY_VERSION" compile "com.android.support:preference-v14:$SUPPORT_LIBRARY_VERSION" diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueAdapter.kt index c5b3a1c262..38a7c1c2cd 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueAdapter.kt @@ -1,8 +1,9 @@ package eu.kanade.tachiyomi.ui.catalogue +import android.view.Gravity import android.view.ViewGroup import android.view.ViewGroup.LayoutParams.MATCH_PARENT -import android.widget.RelativeLayout +import android.widget.FrameLayout import eu.davidea.flexibleadapter.FlexibleAdapter import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.database.models.Manga @@ -71,12 +72,14 @@ class CatalogueAdapter(val fragment: CatalogueFragment) : FlexibleAdapter 0) View.VISIBLE else View.GONE text = manga.unread.toString() } diff --git a/app/src/main/res/layout/item_catalogue_grid.xml b/app/src/main/res/layout/item_catalogue_grid.xml index 5dc4a8842a..ba1ffcb5c3 100644 --- a/app/src/main/res/layout/item_catalogue_grid.xml +++ b/app/src/main/res/layout/item_catalogue_grid.xml @@ -7,40 +7,32 @@ android:layout_height="wrap_content" android:background="?attr/selectable_list_drawable"> - - + - - - - - - + - + \ No newline at end of file