From 2388d1873850191252854626f942692cc9696bb5 Mon Sep 17 00:00:00 2001 From: Isidro Henoch Date: Wed, 15 Dec 2021 00:28:54 -0600 Subject: Updates the devices list - The unit items now react to user interaction, they display and change their appearance on click - The adapter has a callback to manage the different options - Minor changes to dimen values --- androidApp/src/main/res/layout/unit_item.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'androidApp/src/main/res/layout/unit_item.xml') diff --git a/androidApp/src/main/res/layout/unit_item.xml b/androidApp/src/main/res/layout/unit_item.xml index 4534339..cdf0610 100644 --- a/androidApp/src/main/res/layout/unit_item.xml +++ b/androidApp/src/main/res/layout/unit_item.xml @@ -6,7 +6,7 @@ android:id="@+id/unitCard" android:layout_width="match_parent" android:layout_height="wrap_content" - app:cardCornerRadius="20dp" + app:cardCornerRadius="@dimen/card_border_radius" app:cardElevation="0dp" app:cardUseCompatPadding="true" app:contentPadding="16dp"> @@ -14,7 +14,8 @@ + android:orientation="vertical" + android:animateLayoutChanges="true"> @@ -74,7 +75,7 @@ android:layout_height="wrap_content" android:layout_marginHorizontal="8dp" android:layout_weight="1" - android:text="Reports" + android:text="@string/unit_reports" android:textColor="@color/colorPrimaryDark" app:backgroundTint="@color/darkBackground" /> @@ -83,7 +84,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" - android:text="Commands" + android:text="@string/unit_commands" android:textColor="@color/colorPrimaryDark" app:backgroundTint="@color/darkBackground" /> -- cgit v1.2.3