diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-04-06 05:29:18 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-04-06 05:29:18 +0000 |
| commit | 2cce533490baa4fe0d14f8541be1375e8069b164 (patch) | |
| tree | de80475f37b95e57650399c4d3ee9ab8aeed53cf /android-app/app/src/main/kotlin/org | |
| parent | 8004e7e05a68a2409ad0fdfc067936f9e2329067 (diff) | |
feat(ui): restructure instrument sheet layout — inline arrows, WaveView, ocean forecast section
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 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src/main/kotlin/org')
| -rw-r--r-- | android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt | 4 | ||||
| -rw-r--r-- | android-app/app/src/main/kotlin/org/terst/nav/ui/InstrumentHandler.kt | 8 |
2 files changed, 6 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 6197475..023cb94 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 @@ -190,9 +190,9 @@ class MainActivity : AppCompatActivity(), SafetyFragment.SafetyListener { valueDepth = findViewById(R.id.value_depth), valueBaro = findViewById(R.id.value_baro), valueCurrSpd = findViewById(R.id.value_curr_spd), - valueCurrDir = findViewById(R.id.value_curr_dir), + valueCurrDir = null, valueWaveHt = findViewById(R.id.value_wave_ht), - valueWaveDir = findViewById(R.id.value_wave_dir), + valueWaveDir = null, valueSwellHt = findViewById(R.id.value_swell_ht), valueSwellPer = findViewById(R.id.value_swell_per) ) diff --git a/android-app/app/src/main/kotlin/org/terst/nav/ui/InstrumentHandler.kt b/android-app/app/src/main/kotlin/org/terst/nav/ui/InstrumentHandler.kt index 91582c0..370d8cf 100644 --- a/android-app/app/src/main/kotlin/org/terst/nav/ui/InstrumentHandler.kt +++ b/android-app/app/src/main/kotlin/org/terst/nav/ui/InstrumentHandler.kt @@ -15,9 +15,9 @@ class InstrumentHandler( private val valueDepth: TextView, private val valueBaro: TextView, private val valueCurrSpd: TextView, - private val valueCurrDir: TextView, + private val valueCurrDir: TextView?, private val valueWaveHt: TextView, - private val valueWaveDir: TextView, + private val valueWaveDir: TextView?, private val valueSwellHt: TextView, private val valueSwellPer: TextView ) { @@ -57,9 +57,9 @@ class InstrumentHandler( swellPer: String? = null ) { currSpd?.let { valueCurrSpd.text = it } - currDir?.let { valueCurrDir.text = it } + currDir?.let { valueCurrDir?.text = it } waveHt?.let { valueWaveHt.text = it } - waveDir?.let { valueWaveDir.text = it } + waveDir?.let { valueWaveDir?.text = it } swellHt?.let { valueSwellHt.text = it } swellPer?.let { valueSwellPer.text = it } } |
