From 3e4ec7323b60df8044cd130f4d35d058d976e33d Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Fri, 11 Mar 2022 15:58:08 +0530 Subject: [PATCH] Tweak grid compact items Removes card elevation as it visually conflicts with the scrim, this also makes the scrim a bit darker to emphasize the text and slightly reduces the border radius. --- app/src/main/res/drawable/background_gradient.xml | 4 ++-- app/src/main/res/layout/app_item_grid_compact.xml | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/drawable/background_gradient.xml b/app/src/main/res/drawable/background_gradient.xml index 2d6eebc0..0a41f1fd 100644 --- a/app/src/main/res/drawable/background_gradient.xml +++ b/app/src/main/res/drawable/background_gradient.xml @@ -2,8 +2,8 @@ - \ No newline at end of file + diff --git a/app/src/main/res/layout/app_item_grid_compact.xml b/app/src/main/res/layout/app_item_grid_compact.xml index 8a823407..fda2e91b 100644 --- a/app/src/main/res/layout/app_item_grid_compact.xml +++ b/app/src/main/res/layout/app_item_grid_compact.xml @@ -5,12 +5,8 @@ android:id="@+id/item_click_layout" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginStart="10dp" - android:layout_marginTop="10dp" - android:layout_marginEnd="10dp" - android:layout_marginBottom="10dp" - app:cardCornerRadius="16dp" - app:cardElevation="2dp"> + android:layout_margin="7.5dp" + app:cardCornerRadius="14dp">