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
commitb0179b7602d39bf12c3095b3019974dcd9925774 (patch)
tree7d9e848c5bd836182a9fb8592271b553ee1b3895 /androidApp/src/main/res/layout
parent057b5c0ff74ef81096ad442b359be598e9a576aa (diff)
downloadetbsa-trackermap-mobile-b0179b7602d39bf12c3095b3019974dcd9925774.tar.gz
etbsa-trackermap-mobile-b0179b7602d39bf12c3095b3019974dcd9925774.tar.bz2
etbsa-trackermap-mobile-b0179b7602d39bf12c3095b3019974dcd9925774.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"