summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/res/layout/activity_main.xml
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-05-04 07:50:32 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-05-04 07:50:32 -1000
commitafc7906c1a47fa9cf9dff5a247e6abae7e8aacbb (patch)
tree9330474c859123845f4ed22283acaa6efc29587b /android-app/app/src/main/res/layout/activity_main.xml
parentf9cf42e5087a747aae480544173127d6b0f8a956 (diff)
feat: move Layers from bottom nav to dedicated FAB
Replaces the nav_layers bottom nav item with a mini FloatingActionButton anchored below the HUD, giving layers access without occupying a nav slot. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src/main/res/layout/activity_main.xml')
-rw-r--r--android-app/app/src/main/res/layout/activity_main.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/android-app/app/src/main/res/layout/activity_main.xml b/android-app/app/src/main/res/layout/activity_main.xml
index 4150b2e..6832daa 100644
--- a/android-app/app/src/main/res/layout/activity_main.xml
+++ b/android-app/app/src/main/res/layout/activity_main.xml
@@ -39,6 +39,20 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
+ <!-- Layers FAB — map layer picker -->
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/fab_layers"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:layout_marginEnd="12dp"
+ android:contentDescription="Layers"
+ app:srcCompat="@drawable/ic_layers"
+ app:fabSize="mini"
+ app:elevation="8dp"
+ app:layout_constraintTop_toBottomOf="@id/nav_hud"
+ app:layout_constraintEnd_toEndOf="parent" />
+
<!-- Crosshair — visible when not following (panning) -->
<ImageView
android:id="@+id/map_crosshair"