From dc75a753c35f47ea8ad51226412e60647028ba22 Mon Sep 17 00:00:00 2001 From: tom5079 Date: Thu, 1 Oct 2020 22:46:03 +0900 Subject: [PATCH] Minimum thumbnail height --- .../quaver/pupil/adapters/GalleryBlockAdapter.kt | 2 -- app/src/main/res/layout/item_galleryblock.xml | 15 +++++---------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/xyz/quaver/pupil/adapters/GalleryBlockAdapter.kt b/app/src/main/java/xyz/quaver/pupil/adapters/GalleryBlockAdapter.kt index 93534051..28f31f11 100644 --- a/app/src/main/java/xyz/quaver/pupil/adapters/GalleryBlockAdapter.kt +++ b/app/src/main/java/xyz/quaver/pupil/adapters/GalleryBlockAdapter.kt @@ -283,8 +283,6 @@ class GalleryBlockAdapter(private val galleries: List) : RecyclerSwipeAdapt // Make some views invisible to make it thinner if (thin) { - galleryblock_language.visibility = View.GONE - galleryblock_type.visibility = View.GONE galleryblock_tag_group.visibility = View.GONE } } diff --git a/app/src/main/res/layout/item_galleryblock.xml b/app/src/main/res/layout/item_galleryblock.xml index d8bbee51..a8ed2343 100644 --- a/app/src/main/res/layout/item_galleryblock.xml +++ b/app/src/main/res/layout/item_galleryblock.xml @@ -113,9 +113,11 @@ android:layout_height="0dp" android:contentDescription="@string/galleryblock_thumbnail_description" android:adjustViewBounds="true" + app:layout_constraintHeight_default="spread" + app:layout_constraintHeight_min="200dp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@id/galleryblock_progressbar_layout" - app:layout_constraintBottom_toBottomOf="@id/barrier"/> + app:layout_constraintBottom_toTopOf="@id/barrier"/> - - @@ -188,7 +183,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" app:barrierDirection="bottom" - app:constraint_referenced_ids="galleryblock_tag_group"/> + app:constraint_referenced_ids="galleryblock_thumbnail, galleryblock_tag_group"/>