summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/res/layout/activity_main.xml
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-02 01:35:07 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-02 01:35:07 +0000
commit1893aee8e9a23fdc51e203c918f52374fa601d7d (patch)
treeb36481a695a940fea34ad1bb6afa475f3fcf3bc3 /android-app/app/src/main/res/layout/activity_main.xml
parent801288968198814b77e0a740da72db3cfb584872 (diff)
fix(ui): layer previews, fishing pole icon, button alignment, safety page cleanup
- Layer picker: change android:src→android:background on preview ImageViews; shape drawables have no intrinsic size so centerCrop renders blank — background fills correctly - Replace ic_fish with ic_fishing_pole (rod + reel + line + hook vector) - Move fab_fishing to CoordinatorLayout with layout_anchor on instrument_bottom_sheet top|start, matching fab_record_track positioning so both FABs sit level at sheet top - Raise fishing_overlay marginBottom 140dp→200dp to clear the realigned FAB - Safety: remove HELP button + DocFragment import from SafetyFragment; rename Quit→Quit App 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.xml28
1 files changed, 14 insertions, 14 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 a1939c1..fc60c80 100644
--- a/android-app/app/src/main/res/layout/activity_main.xml
+++ b/android-app/app/src/main/res/layout/activity_main.xml
@@ -95,24 +95,11 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
- android:layout_marginBottom="140dp"
+ android:layout_marginBottom="200dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
- <!-- Fishing mode FAB — bottom-start -->
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/fab_fishing"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginBottom="136dp"
- android:src="@drawable/ic_fish"
- android:contentDescription="Fishing mode"
- app:fabSize="mini"
- app:elevation="8dp"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toStartOf="parent" />
<com.google.android.material.button.MaterialButton
android:id="@+id/fab_recenter"
@@ -169,6 +156,19 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
+ <!-- Fishing mode FAB — anchored to sheet top-start, vertically aligned with record track -->
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/fab_fishing"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:src="@drawable/ic_fishing_pole"
+ android:contentDescription="Fishing mode"
+ app:fabSize="mini"
+ app:elevation="20dp"
+ app:layout_anchor="@id/instrument_bottom_sheet"
+ app:layout_anchorGravity="top|start" />
+
<!-- Record Track Button -->
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab_record_track"