aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/res
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-01-03 19:57:27 -0600
committerIván Ávalos <avalos@disroot.org>2023-01-03 19:57:27 -0600
commitc1f4af8cae325ee56fa2c57dc70c98ecffcd5a3a (patch)
tree4b8dd206a050d9284ac8be245edd5df195599c0f /androidApp/src/main/res
parenta7b9e807d7f90b5c34d8c423806de90ceed0f065 (diff)
parent86b5601d7d9965bea7d57f04600b02f5432dc966 (diff)
downloadetbsa-trackermap-mobile-c1f4af8cae325ee56fa2c57dc70c98ecffcd5a3a.tar.gz
etbsa-trackermap-mobile-c1f4af8cae325ee56fa2c57dc70c98ecffcd5a3a.tar.bz2
etbsa-trackermap-mobile-c1f4af8cae325ee56fa2c57dc70c98ecffcd5a3a.zip
Merge branch 'main' of https://git.sr.ht/~avalos/trackermap-mobile
Diffstat (limited to 'androidApp/src/main/res')
-rw-r--r--androidApp/src/main/res/drawable/device_ignition.xml5
-rw-r--r--androidApp/src/main/res/layout/unit_item.xml8
-rw-r--r--androidApp/src/main/res/layout/unit_map_fragment.xml8
-rw-r--r--androidApp/src/main/res/values-es-rMX/strings.xml1
-rw-r--r--androidApp/src/main/res/values/strings.xml1
5 files changed, 23 insertions, 0 deletions
diff --git a/androidApp/src/main/res/drawable/device_ignition.xml b/androidApp/src/main/res/drawable/device_ignition.xml
new file mode 100644
index 0000000..d2d8103
--- /dev/null
+++ b/androidApp/src/main/res/drawable/device_ignition.xml
@@ -0,0 +1,5 @@
+<vector android:height="14dp" android:tint="#FFAB00"
+ android:viewportHeight="24" android:viewportWidth="24"
+ android:width="14dp" xmlns:android="http://schemas.android.com/apk/res/android">
+ <path android:fillColor="@android:color/white" android:pathData="M21,10h-8.35C11.83,7.67 9.61,6 7,6c-3.31,0 -6,2.69 -6,6s2.69,6 6,6c2.61,0 4.83,-1.67 5.65,-4H13l2,2l2,-2l2,2l4,-4.04L21,10zM7,15c-1.65,0 -3,-1.35 -3,-3c0,-1.65 1.35,-3 3,-3s3,1.35 3,3C10,13.65 8.65,15 7,15z"/>
+</vector>
diff --git a/androidApp/src/main/res/layout/unit_item.xml b/androidApp/src/main/res/layout/unit_item.xml
index 6946d1d..03bef15 100644
--- a/androidApp/src/main/res/layout/unit_item.xml
+++ b/androidApp/src/main/res/layout/unit_item.xml
@@ -113,6 +113,14 @@
tools:ignore="ContentDescription" />
<ImageView
+ android:id="@+id/ignitionIcon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="5dp"
+ android:src="@drawable/device_ignition"
+ android:contentDescription="@string/unit_ignition_on" />
+
+ <ImageView
android:id="@+id/engineStopIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/androidApp/src/main/res/layout/unit_map_fragment.xml b/androidApp/src/main/res/layout/unit_map_fragment.xml
index f168662..b33b946 100644
--- a/androidApp/src/main/res/layout/unit_map_fragment.xml
+++ b/androidApp/src/main/res/layout/unit_map_fragment.xml
@@ -59,6 +59,14 @@
tools:ignore="ContentDescription" />
<ImageView
+ android:id="@+id/ignitionIcon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="5dp"
+ android:src="@drawable/device_ignition"
+ tools:ignore="ContentDescription" />
+
+ <ImageView
android:id="@+id/engineStopIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
diff --git a/androidApp/src/main/res/values-es-rMX/strings.xml b/androidApp/src/main/res/values-es-rMX/strings.xml
index 26e0cad..da8764b 100644
--- a/androidApp/src/main/res/values-es-rMX/strings.xml
+++ b/androidApp/src/main/res/values-es-rMX/strings.xml
@@ -33,6 +33,7 @@
<!-- Unit Item -->
<string name="unit_status_on">Estatus encendido</string>
<string name="unit_status_off">Estatus apagado</string>
+ <string name="unit_ignition_on">Ignición apagada</string>
<string name="unit_lock_on">Paro de motor encendido</string>
<string name="unit_lock_off">Paro de motor apagado</string>
<string name="unit_driver_name">Nombre del conductor</string>
diff --git a/androidApp/src/main/res/values/strings.xml b/androidApp/src/main/res/values/strings.xml
index c349cd8..a946cf8 100644
--- a/androidApp/src/main/res/values/strings.xml
+++ b/androidApp/src/main/res/values/strings.xml
@@ -47,6 +47,7 @@
<!-- Unit Item -->
<string name="unit_status_on">Status on</string>
<string name="unit_status_off">Status off</string>
+ <string name="unit_ignition_on">Ignition on</string>
<string name="unit_lock_on">Engine stop on</string>
<string name="unit_lock_off">Engine stop off</string>
<string name="unit_driver_name">Driver name</string>