39 lines
1.5 KiB
XML
39 lines
1.5 KiB
XML
<!--
|
|||
|
|
Live-map marker for a signalised intersection heard over SPATEM: a traffic light housing with
|
||
|
|
the lamp for the intersection's leading phase lit and the other two dimmed.
|
||
|
|
|
||
|
|
One drawable per lit lamp rather than one drawable tinted at runtime: setTint recolours every
|
||
|
|
path in a vector, so a single shared asset could not keep the unlit lamps dark while colouring
|
||
|
|
the lit one - the whole light would turn one flat colour and stop reading as a traffic light.
|
||
|
|
|
||
|
|
Anchored at the bottom in V2xLiveMapView, so the housing sits above the intersection rather
|
||
|
|
than covering it.
|
||
|
|
-->
|
||
|
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
|
android:width="30dp"
|
||
|
|
android:height="30dp"
|
||
|
|
android:viewportWidth="24"
|
||
|
|
android:viewportHeight="24">
|
||
|
|
|
||
|
|
<!-- White outline first, so the marker stays legible over dark map features. -->
|
||
|
|
<path
|
||
|
|
android:fillColor="#FFFFFFFF"
|
||
|
|
android:pathData="M4.4,0.8H19.6V23.2H4.4z" />
|
||
|
|
|
||
|
|
<!-- Housing. -->
|
||
|
|
<path
|
||
|
|
android:fillColor="#FF263238"
|
||
|
|
android:pathData="M5.8,2.0H18.2V22.0H5.8z" />
|
||
|
|
|
||
|
|
<!-- Lamps, top to bottom: red, amber, green. -->
|
||
|
|
<path
|
||
|
|
android:fillColor="#FFFF5252"
|
||
|
|
android:pathData="M12,6.6m-2.6,0a2.6,2.6 0 1,0 5.2,0a2.6,2.6 0 1,0 -5.2,0" />
|
||
|
|
<path
|
||
|
|
android:fillColor="#FF4A2E1C"
|
||
|
|
android:pathData="M12,12.0m-2.6,0a2.6,2.6 0 1,0 5.2,0a2.6,2.6 0 1,0 -5.2,0" />
|
||
|
|
<path
|
||
|
|
android:fillColor="#FF1E4D2B"
|
||
|
|
android:pathData="M12,17.4m-2.6,0a2.6,2.6 0 1,0 5.2,0a2.6,2.6 0 1,0 -5.2,0" />
|
||
|
|
</vector>
|