[android] Add current speed widget

Signed-off-by: TobiPeterG <codeberg.sadness522@passmail.net>
This commit is contained in:
TobiPeterG
2025-08-04 23:38:43 +02:00
committed by Harry Bond
parent 4bad37a829
commit ea1d0eefa2
8 changed files with 392 additions and 189 deletions

View File

@@ -3,6 +3,8 @@
<declare-styleable name="SpeedLimitView">
<attr name="speedLimitBackgroundColor" format="color" />
<attr name="speedLimitBorderColor" format="color" />
<attr name="speedLimitUnlimitedBorderColor" format="color" />
<attr name="speedLimitUnlimitedStripeColor" format="color" />
<attr name="speedLimitAlertColor" format="color" />
<attr name="speedLimitTextColor" format="color" />
<attr name="speedLimitTextAlertColor" format="color" />
@@ -11,6 +13,14 @@
<attr name="speedLimitEditModeAlert" format="boolean" />
</declare-styleable>
<declare-styleable name="CurrentSpeedView">
<attr name="currentSpeedBackgroundColor" format="color" />
<attr name="currentSpeedBorderColor" format="color" />
<attr name="currentSpeedTextColor" format="color" />
<!-- These values are used only in edit mode -->
<attr name="currentSpeedEditModeCurrentSpeed" format="integer" />
</declare-styleable>
<declare-styleable name="LanesView">
<attr name="lanesActiveLaneTintColor" format="reference" />
<attr name="lanesInactiveLaneTintColor" format="color" />

View File

@@ -10,6 +10,10 @@
<item name="speedLimitBorderColor">@color/base_red</item>
</style>
<style name="MwmWidget.CurrentSpeed">
<item name="speedLimitBorderColor">@color/black_primary</item>
</style>
<style name="MwmWidget.FrameLayout"/>
<style name="MwmWidget.Downloader"/>