summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/res/layout/dialog_new_note.xml
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-02 04:52:10 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-02 04:52:10 +0000
commit715806c626aeb0f0101f8be5bae0f6179b28e3cb (patch)
tree6e757af3696dadd0d9f48bcc132ba9617caa6dcb /android-app/app/src/main/res/layout/dialog_new_note.xml
parent80aa2531144563e8a117ffd81f6dd6d9af8bd574 (diff)
fix+feat: track layer cleanup, notification, log redesign, color consistencymain
- Fix track events persisting on main map: clear selectedTrack and pop track_detail back stack in hideOverlays() so speed segments and tack circles are removed when navigating to Map via bottom nav - Notification: dual channels (recording=DEFAULT, background=MIN); shows app name + "Recording journey · Xh Ym · X.X nm"; updates live from trackStats collector; invisible when not recording - Log tab: unified reverse-chronological ship's log merging saved tracks + standalone notes (no photo-only rows); form hidden when not recording with "New Note" button → AlertDialog (with camera/gallery); combine() flow keeps list reactive to both tracks and log entries - Sheet border: bottom nav + fragment container now use colorSurfaceContainerHigh matching the instrument card's elevated surface color; card elevation set to 0dp with explicit background to avoid double-tinting Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src/main/res/layout/dialog_new_note.xml')
-rw-r--r--android-app/app/src/main/res/layout/dialog_new_note.xml80
1 files changed, 80 insertions, 0 deletions
diff --git a/android-app/app/src/main/res/layout/dialog_new_note.xml b/android-app/app/src/main/res/layout/dialog_new_note.xml
new file mode 100644
index 0000000..a403b8d
--- /dev/null
+++ b/android-app/app/src/main/res/layout/dialog_new_note.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical"
+ android:padding="20dp">
+
+ <com.google.android.material.textfield.TextInputLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="12dp"
+ style="@style/Widget.Material3.TextInputLayout.OutlinedBox">
+
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/et_dialog_note"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minLines="4"
+ android:maxLines="8"
+ android:gravity="top"
+ android:hint="Add a note…"
+ android:inputType="textMultiLine|textCapSentences" />
+
+ </com.google.android.material.textfield.TextInputLayout>
+
+ <!-- Camera / gallery row -->
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:layout_marginBottom="8dp">
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/btn_dialog_camera"
+ style="@style/Widget.Material3.Button.IconButton.Outlined"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:contentDescription="Take photo"
+ app:icon="@android:drawable/ic_menu_camera"
+ android:layout_marginEnd="8dp" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/btn_dialog_gallery"
+ style="@style/Widget.Material3.Button.IconButton.Outlined"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:contentDescription="Attach photo from gallery"
+ app:icon="@android:drawable/ic_menu_gallery" />
+
+ </LinearLayout>
+
+ <!-- Photo preview -->
+ <FrameLayout
+ android:id="@+id/frame_dialog_photo"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:visibility="gone">
+
+ <ImageView
+ android:id="@+id/iv_dialog_photo"
+ android:layout_width="120dp"
+ android:layout_height="90dp"
+ android:scaleType="centerCrop"
+ android:contentDescription="Attached photo" />
+
+ <com.google.android.material.button.MaterialButton
+ android:id="@+id/btn_dialog_remove_photo"
+ style="@style/Widget.Material3.Button.IconButton"
+ android:layout_width="32dp"
+ android:layout_height="32dp"
+ android:layout_gravity="top|end"
+ android:contentDescription="Remove photo"
+ app:icon="@drawable/ic_close" />
+
+ </FrameLayout>
+
+</LinearLayout>