From 15576b6c39cded5d32eb07254dac981af52f58c7 Mon Sep 17 00:00:00 2001 From: Peter Vacho Date: Sat, 4 Jan 2025 22:32:48 +0100 Subject: [PATCH] feat(categories): Improve category item layout --- .../neat_calendar/adapters/CategoryAdapter.kt | 1 - app/src/main/res/layout/item_category.xml | 89 ++++++++++--------- 2 files changed, 49 insertions(+), 41 deletions(-) diff --git a/app/src/main/java/com/p_vacho/neat_calendar/adapters/CategoryAdapter.kt b/app/src/main/java/com/p_vacho/neat_calendar/adapters/CategoryAdapter.kt index 6273888..4bd0a70 100644 --- a/app/src/main/java/com/p_vacho/neat_calendar/adapters/CategoryAdapter.kt +++ b/app/src/main/java/com/p_vacho/neat_calendar/adapters/CategoryAdapter.kt @@ -1,6 +1,5 @@ package com.p_vacho.neat_calendar.adapters -import android.graphics.Color import android.view.LayoutInflater import android.view.View import android.view.ViewGroup diff --git a/app/src/main/res/layout/item_category.xml b/app/src/main/res/layout/item_category.xml index eb1aa79..914a9f5 100644 --- a/app/src/main/res/layout/item_category.xml +++ b/app/src/main/res/layout/item_category.xml @@ -1,50 +1,59 @@ - + android:layout_margin="8dp" + app:cardCornerRadius="8dp" + app:cardElevation="4dp" + app:cardBackgroundColor="?android:attr/colorBackground"> - - - - - + android:padding="8dp"> - - + + - + + + + + + + +