aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/res/layout/unit_item.xml
diff options
context:
space:
mode:
authorIsidro Henoch <imhenoch@protonmail.com>2021-12-15 00:28:54 -0600
committerIsidro Henoch <imhenoch@protonmail.com>2021-12-15 00:28:54 -0600
commit14dff03d1d705722d8184724f296deff557a3014 (patch)
tree09ae59ecd4f158683aba2c3e5131fcca8ecf4fa6 /androidApp/src/main/res/layout/unit_item.xml
parent6674ec486e3ffcf0a3d2a19e7f7bf7f963722264 (diff)
downloadetbsa-trackermap-mobile-14dff03d1d705722d8184724f296deff557a3014.tar.gz
etbsa-trackermap-mobile-14dff03d1d705722d8184724f296deff557a3014.tar.bz2
etbsa-trackermap-mobile-14dff03d1d705722d8184724f296deff557a3014.zip
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
Diffstat (limited to 'androidApp/src/main/res/layout/unit_item.xml')
-rw-r--r--androidApp/src/main/res/layout/unit_item.xml11
1 files changed, 6 insertions, 5 deletions
diff --git a/androidApp/src/main/res/layout/unit_item.xml b/androidApp/src/main/res/layout/unit_item.xml
index 52f6f74..98fcb1b 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 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="vertical">
+ android:orientation="vertical"
+ android:animateLayoutChanges="true">
<TextView
android:id="@+id/unitName"
@@ -64,7 +65,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:text="Details"
+ android:text="@string/unit_details"
android:textColor="@color/colorPrimaryDark"
app:backgroundTint="@color/darkBackground" />
@@ -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" />