-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvd_compass_needles.xml
More file actions
59 lines (55 loc) · 2.43 KB
/
vd_compass_needles.xml
File metadata and controls
59 lines (55 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:viewportWidth="200"
android:viewportHeight="200">
<group android:name="root_group">
<!-- Compass Outer Ring -->
<path
android:fillColor="@android:color/transparent"
android:pathData="M 100,100 m -85,0 a 85,85 0 1,1 170,0 a 85,85 0 1,1 -170,0"
android:strokeColor="@color/colorTertiary"
android:strokeWidth="1.5" />
<!-- Magnetic North North Group -->
<group
android:name="magnetic_needle_group"
android:pivotX="100"
android:pivotY="100">
<path
android:fillColor="@color/colorOnBackground"
android:pathData="M 100,28 L 107,98 L 100,112 L 93,98 Z" />
<path
android:fillColor="@color/colorSecondary"
android:pathData="M 100,112 L 107,98 L 100,172 L 93,98 Z" />
<!-- Magnetic Label "M" -->
<path
android:fillColor="@color/colorOnBackground"
android:pathData="M 97,18 L 100,23 L 103,18 L 104.5,18 L 104.5,26 L 103,26 L 103,20 L 100.5,24 L 99.5,24 L 97,20 L 97,26 L 95.5,26 L 95.5,18 Z" />
</group>
<!-- True North Needle Group -->
<group
android:name="true_needle_group"
android:pivotX="100"
android:pivotY="100"
android:rotation="0">
<path
android:fillColor="@color/colorSecondary"
android:pathData="M 100,34 L 105,98 L 100,110 L 95,98 Z" />
<path
android:fillColor="@color/colorTertiary"
android:pathData="M 100,110 L 105,98 L 100,166 L 95,98 Z" />
<!-- True Label "T" -->
<path
android:fillColor="@color/colorSecondary"
android:pathData="M 96,18 L 104,18 L 104,19.5 L 100.75,19.5 L 100.75,26 L 99.25,26 L 99.25,19.5 L 96,19.5 Z" />
</group>
<!-- Center Pivot Dot -->
<path
android:fillColor="@color/colorSecondary"
android:pathData="M 100,100 m -5,0 a 5,5 0 1,1 10,0 a 5,5 0 1,1 -10,0" />
<!-- Red Center Accent Dot -->
<path
android:fillColor="@color/colorPrimary"
android:pathData="M 100,100 m -2,0 a 2,2 0 1,1 4,0 a 2,2 0 1,1 -4,0" />
</group>
</vector>