From 2cce533490baa4fe0d14f8541be1375e8069b164 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 6 Apr 2026 05:29:18 +0000 Subject: feat(ui): restructure instrument sheet layout — inline arrows, WaveView, ocean forecast section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Full layout rewrite: 3×2 GridLayout instrument grid with inline DirectionArrowView for AWS/TWS/HDG/COG, depth+baro row, animated WaveView divider, and ocean-blue forecast section for Current/Waves/Swell. Stubs valueCurrDir/valueWaveDir as nullable in InstrumentHandler to compile; full handler rewrite follows in Task 6. Co-Authored-By: Claude Sonnet 4.6 --- .../main/res/layout/layout_instruments_sheet.xml | 328 +++++++++++++++++---- 1 file changed, 273 insertions(+), 55 deletions(-) (limited to 'android-app/app/src/main/res/layout') 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 8c41ff3..33a7bd9 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 @@ -1,34 +1,46 @@ - + - + + app:layout_constraintTop_toBottomOf="@id/drag_handle" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent"> - + - + + + + + - + - + + + + - + - + + + + - + - + + + + + - + - + + + + - + - + + + + - + @@ -117,87 +221,201 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:orientation="vertical"> + android:orientation="vertical" + android:gravity="center" + android:padding="8dp"> - + + + + + + + android:orientation="vertical" + android:gravity="center" + android:padding="8dp"> - + + + + - - + - - - + + - - - + android:gravity="center" + android:padding="4dp"> + + + + + + + + + + - - - + android:gravity="center" + android:padding="4dp"> + + + + + + + + + + - - - + android:gravity="center" + android:padding="4dp"> + + + + + + + + + + - -- cgit v1.2.3