aboutsummaryrefslogtreecommitdiff
path: root/androidApp/src/main/res/layout
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-12 22:39:04 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-12 22:39:04 -0600
commita13e418f74397653e028e38084f0f8f09492419e (patch)
tree7d9e848c5bd836182a9fb8592271b553ee1b3895 /androidApp/src/main/res/layout
parentda52a594e73b4fa118dbe7349565a8902755d506 (diff)
downloadetbsa-trackermap-mobile-a13e418f74397653e028e38084f0f8f09492419e.tar.gz
etbsa-trackermap-mobile-a13e418f74397653e028e38084f0f8f09492419e.tar.bz2
etbsa-trackermap-mobile-a13e418f74397653e028e38084f0f8f09492419e.zip
Implemented map layer switching and updated strings.xml
Diffstat (limited to 'androidApp/src/main/res/layout')
-rw-r--r--androidApp/src/main/res/layout/units_activity.xml17
1 files changed, 16 insertions, 1 deletions
diff --git a/androidApp/src/main/res/layout/units_activity.xml b/androidApp/src/main/res/layout/units_activity.xml
index 07b5dad..475598f 100644
--- a/androidApp/src/main/res/layout/units_activity.xml
+++ b/androidApp/src/main/res/layout/units_activity.xml
@@ -40,7 +40,7 @@
app:cardCornerRadius="@dimen/card_border_radius"
app:cardElevation="@dimen/card_elevation"
app:layout_constraintBottom_toBottomOf="@id/displayModeToggle"
- app:layout_constraintEnd_toStartOf="@id/displayModeToggle"
+ app:layout_constraintEnd_toStartOf="@id/mapLayerToggle"
app:layout_constraintStart_toEndOf="@id/userButton"
app:layout_constraintTop_toTopOf="@id/displayModeToggle">
@@ -58,6 +58,21 @@
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/mapLayerToggle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/fab_margin"
+ android:layout_marginEnd="@dimen/fab_margin"
+ android:backgroundTint="@android:color/white"
+ android:contentDescription="@string/switch_layer"
+ android:src="@drawable/icon_layers"
+ app:borderWidth="0dp"
+ app:elevation="@dimen/fab_elevation"
+ app:fabSize="mini"
+ app:layout_constraintEnd_toStartOf="@id/displayModeToggle"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/displayModeToggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"