summaryrefslogtreecommitdiff
path: root/android-app/app/src
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-05-05 12:30:50 -1000
committerPeter Stone <thepeterstone@gmail.com>2026-05-05 12:30:50 -1000
commit2123351fc1d1c529046c5179171e4d442ca20f55 (patch)
tree449e71d17ee2badb33163dccaac2b85e70b18a18 /android-app/app/src
parente73c2f6536fe4203a138424980226010eea5c5e6 (diff)
fix: keep bottom nav visible when panning; expand drag handle touch target
Bottom nav: remove it from the following/panning fade cycle — only fabRecenter and fabRecordTrack swap; nav stays visible throughout. Drag handle: 4dp × 36dp was too small and competed with BottomSheet drag gestures. Now 40dp tall via inset drawable (visual bar unchanged, touch area is a usable 40dp × 36dp). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src')
-rw-r--r--android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt4
-rw-r--r--android-app/app/src/main/res/drawable/drag_handle_bg.xml9
-rw-r--r--android-app/app/src/main/res/layout/layout_instruments_sheet.xml7
3 files changed, 14 insertions, 6 deletions
diff --git a/android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt b/android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt
index 8821b7c..5b219c4 100644
--- a/android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt
+++ b/android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt
@@ -465,9 +465,9 @@ class MainActivity : AppCompatActivity(), SafetyFragment.SafetyListener {
mapCrosshair.visibility = if (following) View.GONE else View.VISIBLE
if (following) {
fadeOut(fabRecenter, gone = true)
- fadeIn(bottomNav, fabRecordTrack)
+ fadeIn(fabRecordTrack)
} else {
- fadeOut(bottomNav, fabRecordTrack, gone = true)
+ fadeOut(fabRecordTrack, gone = true)
fadeIn(fabRecenter)
}
}
diff --git a/android-app/app/src/main/res/drawable/drag_handle_bg.xml b/android-app/app/src/main/res/drawable/drag_handle_bg.xml
new file mode 100644
index 0000000..eea0325
--- /dev/null
+++ b/android-app/app/src/main/res/drawable/drag_handle_bg.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<inset xmlns:android="http://schemas.android.com/apk/res/android"
+ android:insetTop="18dp"
+ android:insetBottom="18dp">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/md_theme_outline" />
+ <corners android:radius="2dp" />
+ </shape>
+</inset>
diff --git a/android-app/app/src/main/res/layout/layout_instruments_sheet.xml b/android-app/app/src/main/res/layout/layout_instruments_sheet.xml
index aa785e6..59a92c3 100644
--- a/android-app/app/src/main/res/layout/layout_instruments_sheet.xml
+++ b/android-app/app/src/main/res/layout/layout_instruments_sheet.xml
@@ -12,13 +12,12 @@
android:clickable="true"
android:focusable="true">
- <!-- Drag handle -->
+ <!-- Drag handle — visual bar is 4dp, touch target is 40dp via inset drawable -->
<View
android:id="@+id/drag_handle"
android:layout_width="36dp"
- android:layout_height="4dp"
- android:layout_marginTop="12dp"
- android:background="@color/md_theme_outline"
+ android:layout_height="40dp"
+ android:background="@drawable/drag_handle_bg"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" />