1<?xml version="1.0" encoding="utf-8"?>
2<vector xmlns:android="http://schemas.android.com/apk/res/android"
3        android:height="50dp"
4        android:width="50dp"
5        android:viewportHeight="100"
6        android:viewportWidth="100"
7        android:alpha="0.6">
8
9    <group
10        android:name="clipBackground">
11        <!--
12        Any content outside this box, should not be there as it will be outside the viewport
13        -->
14        <path
15            android:pathData="M0,0h100v100H0z"
16            android:fillColor="#301BB0D3"/>
17
18        <!--
19        So this box shouldn't be visible
20        -->
21        <path
22            android:pathData="M0,-10h10v10H0z"
23            android:strokeWidth="1"
24            android:strokeColor="#000"
25            android:fillColor="#F00"/>
26
27        <!--
28        This one should be partially visible
29        -->
30        <path
31            android:pathData="M80,-10h10v20h-10z"
32            android:strokeWidth="1"
33            android:strokeColor="#000"
34            android:fillColor="#FF0"/>
35
36    </group>
37
38    <group
39        android:name="root"
40        android:translateX="50.0"
41        android:translateY="50.0"
42        android:scaleX="1.2"
43        android:scaleY="1.2">
44
45        <path
46            android:strokeWidth="2"
47            android:strokeColor="#FFFF00"
48            android:pathData="M-10,-10 m20,0 m0,20 m-20,0 m0,-20z"
49            android:fillColor="#FEBEBE"
50        />
51
52        <!--
53            This is the same as the material indeterminate progressbar which involves drawing
54            several cubic segments
55        -->
56        <path
57            android:pathData="M0, 0 m 0, -30 a 10,10 0 1,1 0,38 a 10,10 0 1,1 0,-38"
58            android:strokeColor="#00FF00"
59            android:strokeLineCap="square"
60            android:strokeLineJoin="miter"
61            android:strokeWidth="1"
62            android:trimPathEnd="0.8"
63            android:trimPathStart="0.3" />
64        <!-- Same figure with reversed end and start -->
65        <path
66            android:pathData="M0, 0 m 0, -12 a 10,10 0 1,1 0,38 a 10,10 0 1,1 0,-38"
67            android:strokeColor="#FFFF00"
68            android:strokeLineCap="square"
69            android:strokeLineJoin="miter"
70            android:strokeWidth="1"
71            android:trimPathEnd="0.3"
72            android:trimPathStart="0.5" />
73
74        <!--
75            Draw a few partial quadratic segments
76        -->
77        <path
78            android:strokeWidth="2"
79            android:strokeColor="#FFFF00"
80            android:pathData="M2,2 Q 5 30 15 0"
81            android:trimPathStart="0.1"
82            android:trimPathEnd="0.9"
83        />
84
85        <!--
86            Draw a line
87        -->
88        <path
89            android:strokeWidth="3"
90            android:strokeColor="#00FFFF"
91            android:pathData="M-10,-10 L 10, 10"
92            android:trimPathStart="0.2"
93            android:trimPathEnd="0.8"
94        />
95
96        <!--
97            Draw a line with gradient stroke color
98        -->
99        <path
100            android:strokeWidth="1"
101            android:strokeColor="#FF00FF"
102            android:fillColor="@color/gradient"
103            android:pathData="M-20,-20 l0, 10 l10, 0 l0, -10 l-10,0 "
104        />
105
106        <!--
107            Draw squares with different fill types
108        -->
109        <path
110            android:fillType="evenOdd"
111            android:strokeWidth="1"
112            android:strokeColor="#AABBCC"
113            android:fillColor="#AAEFCC"
114            android:pathData="M-20,-40 l0, 10 l10, 0 l0, -10 l-10,0 m5,0 l0, 10 l10, 0 l0, -10 l-10,0"
115        />
116
117        <path
118            android:fillType="nonZero"
119            android:strokeWidth="1"
120            android:strokeColor="#AABBCC"
121            android:fillColor="#40AAEFCC"
122            android:pathData="M0,-40 l0, 10 l10, 0 l0, -10 l-10,0 m5,0 l0, 10 l10, 0 l0, -10 l-10,0"
123        />
124    </group>
125
126</vector>