From 4fd3696d7fa308a5dc7d637605f45f4d6e5b1170 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 3 Sep 2024 08:51:21 +0200 Subject: [PATCH] Keep the feed background image at the top (#7379) If the header got long (warning messages, preview description, etc), the image moved down. This created inconsistencies between feed fragment and feed info fragment. --- app/src/main/res/layout/feed_item_list_fragment.xml | 2 +- app/src/main/res/layout/feedinfo.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/feed_item_list_fragment.xml b/app/src/main/res/layout/feed_item_list_fragment.xml index f697288cd..f2535bfbd 100644 --- a/app/src/main/res/layout/feed_item_list_fragment.xml +++ b/app/src/main/res/layout/feed_item_list_fragment.xml @@ -24,7 +24,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/image_readability_tint" - android:scaleType="centerCrop" + android:scaleType="fitStart" app:layout_collapseMode="parallax" app:layout_collapseParallaxMultiplier="0.6" /> diff --git a/app/src/main/res/layout/feedinfo.xml b/app/src/main/res/layout/feedinfo.xml index 7b7937b9d..7c7afa425 100644 --- a/app/src/main/res/layout/feedinfo.xml +++ b/app/src/main/res/layout/feedinfo.xml @@ -26,7 +26,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/image_readability_tint" - android:scaleType="centerCrop" + android:scaleType="fitStart" app:layout_collapseMode="parallax" app:layout_collapseParallaxMultiplier="0.6" />