aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/res
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-30 18:13:49 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-30 18:13:49 -0600
commit512e01c0ca36b336b3dc6437c6fb326614d020d0 (patch)
tree9c999cde5cfda6048896b544e6486df8901c7a26 /androidApp/src/main/res
parent10e78b9e0311485982711857826ffa79e0d869f4 (diff)
downloadetbsa-trackermap-mobile-512e01c0ca36b336b3dc6437c6fb326614d020d0.tar.gz
etbsa-trackermap-mobile-512e01c0ca36b336b3dc6437c6fb326614d020d0.tar.bz2
etbsa-trackermap-mobile-512e01c0ca36b336b3dc6437c6fb326614d020d0.zip
Accessibility fixes and removed bindings from MapFragment
Diffstat (limited to 'androidApp/src/main/res')
-rw-r--r--androidApp/src/main/res/drawable/ic_baseline_menu_24.xml10
-rw-r--r--androidApp/src/main/res/layout/units_activity.xml8
-rw-r--r--androidApp/src/main/res/values-es-rMX/strings.xml8
-rw-r--r--androidApp/src/main/res/values/strings.xml6
4 files changed, 30 insertions, 2 deletions
diff --git a/androidApp/src/main/res/drawable/ic_baseline_menu_24.xml b/androidApp/src/main/res/drawable/ic_baseline_menu_24.xml
new file mode 100644
index 0000000..4350ba9
--- /dev/null
+++ b/androidApp/src/main/res/drawable/ic_baseline_menu_24.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24"
+ android:tint="?attr/colorControlNormal">
+ <path
+ android:fillColor="@android:color/white"
+ android:pathData="M3,18h18v-2L3,16v2zM3,13h18v-2L3,11v2zM3,6v2h18L21,6L3,6z"/>
+</vector>
diff --git a/androidApp/src/main/res/layout/units_activity.xml b/androidApp/src/main/res/layout/units_activity.xml
index f0d80ab..bff3789 100644
--- a/androidApp/src/main/res/layout/units_activity.xml
+++ b/androidApp/src/main/res/layout/units_activity.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
@@ -26,7 +27,9 @@
app:fabSize="mini"
android:layout_marginStart="@dimen/fab_margin"
android:layout_marginTop="@dimen/fab_margin"
- app:elevation="@dimen/fab_elevation"/>
+ app:elevation="@dimen/fab_elevation"
+ android:src="@drawable/ic_baseline_menu_24"
+ android:contentDescription="@string/open_drawer"/>
<com.google.android.material.card.MaterialCardView
android:layout_width="0dp"
@@ -64,6 +67,7 @@
app:fabSize="mini"
android:layout_marginEnd="@dimen/fab_margin"
android:layout_marginTop="@dimen/fab_margin"
- app:elevation="@dimen/fab_elevation"/>
+ app:elevation="@dimen/fab_elevation"
+ tools:ignore="ContentDescription" />
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file
diff --git a/androidApp/src/main/res/values-es-rMX/strings.xml b/androidApp/src/main/res/values-es-rMX/strings.xml
index 0da9947..69ca1a8 100644
--- a/androidApp/src/main/res/values-es-rMX/strings.xml
+++ b/androidApp/src/main/res/values-es-rMX/strings.xml
@@ -7,6 +7,11 @@
<string name="login_password">Contraseña</string>
<string name="login_login">Iniciar sesión</string>
+ <!-- UnitsActivity -->
+ <string name="toggle_list">Cambiar a lista de dispositivos</string>
+ <string name="toggle_map">Cambiar a mapa</string>
+ <string name="open_drawer">Abrir menú lateral</string>
+
<!-- Unit Item -->
<string name="unit_status_on">Estatus encendido</string>
<string name="unit_status_off">Estatus apagado</string>
@@ -23,4 +28,7 @@
<string name="unit_reports">Reportes</string>
<string name="unit_commands">Comandos</string>
<string name="units_search">Escribe para buscar</string>
+
+ <string name="key">Key</string>
+ <string name="value">Value</string>
</resources> \ No newline at end of file
diff --git a/androidApp/src/main/res/values/strings.xml b/androidApp/src/main/res/values/strings.xml
index 5692688..d68c68c 100644
--- a/androidApp/src/main/res/values/strings.xml
+++ b/androidApp/src/main/res/values/strings.xml
@@ -7,6 +7,11 @@
<string name="login_password">Password</string>
<string name="login_login">Login</string>
+ <!-- UnitsActivity -->
+ <string name="toggle_list">Switch to device list</string>
+ <string name="toggle_map">Switch to map</string>
+ <string name="open_drawer">Open drawer menu</string>
+
<!-- Unit Item -->
<string name="unit_status_on">Status on</string>
<string name="unit_status_off">Status off</string>
@@ -23,6 +28,7 @@
<string name="unit_reports">Reports</string>
<string name="unit_commands">Commands</string>
<string name="units_search">Type to search</string>
+
<string name="key">Key</string>
<string name="value">Value</string>
</resources> \ No newline at end of file