From e867768316a337dd6b226a1ac14452bc1fdc725a Mon Sep 17 00:00:00 2001 From: Charles Lombardo Date: Mon, 30 Oct 2023 13:22:16 -0400 Subject: android: Simplify game card layout Using a material card view to shape the image was just a waste of a layout pass. A shapeable image view does what we want and does it faster. --- src/android/app/src/main/res/layout/card_game.xml | 45 +++++++++-------------- 1 file changed, 18 insertions(+), 27 deletions(-) (limited to 'src/android') diff --git a/src/android/app/src/main/res/layout/card_game.xml b/src/android/app/src/main/res/layout/card_game.xml index 1f5de219b..6340171ec 100644 --- a/src/android/app/src/main/res/layout/card_game.xml +++ b/src/android/app/src/main/res/layout/card_game.xml @@ -1,63 +1,54 @@ - + app:cardCornerRadius="4dp" + app:cardElevation="0dp"> - - - - - + app:layout_constraintTop_toTopOf="parent" + app:shapeAppearance="@style/ShapeAppearance.Material3.Corner.ExtraSmall" + tools:src="@drawable/default_icon" /> -- cgit v1.2.3