aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/res/layout/unit_item.xml
diff options
context:
space:
mode:
authorIsidro Henoch <imhenoch@protonmail.com>2021-12-14 19:01:28 -0600
committerIsidro Henoch <imhenoch@protonmail.com>2021-12-14 19:01:28 -0600
commit233efdfb6aa45965ab0808aca0b823ade6f7b87f (patch)
tree62b8b2627d59cb9d27147fc67f08755cd8d9d992 /androidApp/src/main/res/layout/unit_item.xml
parentcd3c9d93053241b48051ca20d301e4768a576456 (diff)
downloadetbsa-trackermap-mobile-233efdfb6aa45965ab0808aca0b823ade6f7b87f.tar.gz
etbsa-trackermap-mobile-233efdfb6aa45965ab0808aca0b823ade6f7b87f.tar.bz2
etbsa-trackermap-mobile-233efdfb6aa45965ab0808aca0b823ade6f7b87f.zip
Creates the RV adapter to display the units on screen
Diffstat (limited to 'androidApp/src/main/res/layout/unit_item.xml')
-rw-r--r--androidApp/src/main/res/layout/unit_item.xml94
1 files changed, 94 insertions, 0 deletions
diff --git a/androidApp/src/main/res/layout/unit_item.xml b/androidApp/src/main/res/layout/unit_item.xml
new file mode 100644
index 0000000..4534339
--- /dev/null
+++ b/androidApp/src/main/res/layout/unit_item.xml
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<com.google.android.material.card.MaterialCardView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/unitCard"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ app:cardCornerRadius="20dp"
+ app:cardElevation="0dp"
+ app:cardUseCompatPadding="true"
+ app:contentPadding="16dp">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/unitName"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="26dp"
+ tools:text="1AAUTO" />
+
+ <TextView
+ android:id="@+id/driverName"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18dp"
+ tools:text="Javier Zavala" />
+
+ <TextView
+ android:id="@+id/unitSpeed"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18dp"
+ tools:text="0 Km/h - Stopped" />
+
+ <TextView
+ android:id="@+id/lastAddress"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18dp"
+ tools:text="404 Av. Arboledas, Celaya, Gto." />
+
+ <TextView
+ android:id="@+id/lastDate"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18dp"
+ tools:text="4 de Diciembre de 2021, 7:00 PM" />
+
+ <LinearLayout
+ android:id="@+id/itemOptions"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:orientation="horizontal"
+ android:visibility="gone">
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/detailsButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="Details"
+ android:textColor="@color/colorPrimaryDark"
+ app:backgroundTint="@color/darkBackground" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/reportsButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="8dp"
+ android:layout_weight="1"
+ android:text="Reports"
+ android:textColor="@color/colorPrimaryDark"
+ app:backgroundTint="@color/darkBackground" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/commandsButton"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:text="Commands"
+ android:textColor="@color/colorPrimaryDark"
+ app:backgroundTint="@color/darkBackground" />
+
+ </LinearLayout>
+
+ </LinearLayout>
+
+</com.google.android.material.card.MaterialCardView> \ No newline at end of file