implement home page widgets
This commit is contained in:
27
app/src/main/res/drawable/ic_widget_refresh.xml
Normal file
27
app/src/main/res/drawable/ic_widget_refresh.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M20,12a8,8 0,0 1,-13.7 5.6"
|
||||
android:strokeColor="#FFFFFFFF"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M4,12a8,8 0,0 1,13.7 -5.6"
|
||||
android:strokeColor="#FFFFFFFF"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="2" />
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M17,3l3,3l-4,1z" />
|
||||
<path
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M7,21l-3,-3l4,-1z" />
|
||||
</vector>
|
||||
13
app/src/main/res/drawable/widget_background.xml
Normal file
13
app/src/main/res/drawable/widget_background.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="22dp" />
|
||||
<solid android:color="#F0171C23" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#3335D38B" />
|
||||
<padding
|
||||
android:bottom="12dp"
|
||||
android:left="12dp"
|
||||
android:right="12dp"
|
||||
android:top="12dp" />
|
||||
</shape>
|
||||
8
app/src/main/res/drawable/widget_button.xml
Normal file
8
app/src/main/res/drawable/widget_button.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="999dp" />
|
||||
<solid android:color="#2635D38B" />
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#6635D38B" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/widget_panel.xml
Normal file
5
app/src/main/res/drawable/widget_panel.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="14dp" />
|
||||
<solid android:color="#FF202733" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/widget_panel_amber.xml
Normal file
5
app/src/main/res/drawable/widget_panel_amber.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="14dp" />
|
||||
<solid android:color="#2CFFB84D" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/widget_panel_blue.xml
Normal file
5
app/src/main/res/drawable/widget_panel_blue.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="14dp" />
|
||||
<solid android:color="#264CC9F0" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/widget_panel_green.xml
Normal file
5
app/src/main/res/drawable/widget_panel_green.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="14dp" />
|
||||
<solid android:color="#2635D38B" />
|
||||
</shape>
|
||||
5
app/src/main/res/drawable/widget_panel_red.xml
Normal file
5
app/src/main/res/drawable/widget_panel_red.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="14dp" />
|
||||
<solid android:color="#2CFF5A52" />
|
||||
</shape>
|
||||
15
app/src/main/res/drawable/widget_preview_fleet.xml
Normal file
15
app/src/main/res/drawable/widget_preview_fleet.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="360dp"
|
||||
android:height="180dp"
|
||||
android:viewportWidth="360"
|
||||
android:viewportHeight="180">
|
||||
<path android:fillColor="#FF171C23" android:pathData="M0,0h360v180h-360z" />
|
||||
<path android:fillColor="#FF26313D" android:pathData="M24,24h198v18h-198z" />
|
||||
<path android:fillColor="#FF35D38B" android:pathData="M24,62h34v34h-34zM64,62h34v34h-34zM104,62h34v34h-34zM144,62h34v34h-34zM184,62h34v34h-34zM224,62h34v34h-34z" />
|
||||
<path android:fillColor="#FFFFB84D" android:pathData="M264,62h34v34h-34z" />
|
||||
<path android:fillColor="#FFFF5A52" android:pathData="M304,62h34v34h-34z" />
|
||||
<path android:fillColor="#2635D38B" android:pathData="M24,118h88v34h-88z" />
|
||||
<path android:fillColor="#26FFB84D" android:pathData="M136,118h88v34h-88z" />
|
||||
<path android:fillColor="#26FF5A52" android:pathData="M248,118h88v34h-88z" />
|
||||
</vector>
|
||||
30
app/src/main/res/drawable/widget_preview_graph.xml
Normal file
30
app/src/main/res/drawable/widget_preview_graph.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="360dp"
|
||||
android:height="180dp"
|
||||
android:viewportWidth="360"
|
||||
android:viewportHeight="180">
|
||||
<path android:fillColor="#FF171C23" android:pathData="M0,0h360v180h-360z" />
|
||||
<path android:fillColor="#FF27313D" android:pathData="M24,48h312v2h-312zM24,84h312v2h-312zM24,120h312v2h-312zM24,156h312v2h-312z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M24,138 C72,118 96,130 132,96 C172,58 214,82 248,54 C284,24 304,46 336,32"
|
||||
android:strokeColor="#FF35D38B"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="6" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M24,118 C72,98 102,112 142,84 C182,60 212,92 250,76 C292,58 310,82 336,68"
|
||||
android:strokeColor="#FF4CC9F0"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="6" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M24,152 C66,138 98,144 136,126 C178,108 210,116 250,98 C288,82 312,104 336,92"
|
||||
android:strokeColor="#FFFFB84D"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="6" />
|
||||
</vector>
|
||||
14
app/src/main/res/drawable/widget_preview_incidents.xml
Normal file
14
app/src/main/res/drawable/widget_preview_incidents.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="360dp"
|
||||
android:height="180dp"
|
||||
android:viewportWidth="360"
|
||||
android:viewportHeight="180">
|
||||
<path android:fillColor="#FF171C23" android:pathData="M0,0h360v180h-360z" />
|
||||
<path android:fillColor="#26FF5A52" android:pathData="M24,48h82v104h-82z" />
|
||||
<path android:fillColor="#FFFF5A52" android:pathData="M46,72h38v50h-38z" />
|
||||
<path android:fillColor="#FF202733" android:pathData="M126,48h210v28h-210zM126,88h210v28h-210zM126,128h210v28h-210z" />
|
||||
<path android:fillColor="#FFFF5A52" android:pathData="M138,58h22v8h-22z" />
|
||||
<path android:fillColor="#FFFFB84D" android:pathData="M138,98h22v8h-22z" />
|
||||
<path android:fillColor="#FF35D38B" android:pathData="M138,138h22v8h-22z" />
|
||||
</vector>
|
||||
18
app/src/main/res/drawable/widget_preview_metric.xml
Normal file
18
app/src/main/res/drawable/widget_preview_metric.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="360dp"
|
||||
android:height="180dp"
|
||||
android:viewportWidth="360"
|
||||
android:viewportHeight="180">
|
||||
<path android:fillColor="#FF171C23" android:pathData="M0,0h360v180h-360z" />
|
||||
<path android:fillColor="#FF4CC9F0" android:pathData="M24,28h96v46h-96z" />
|
||||
<path android:fillColor="#FF27313D" android:pathData="M24,102h312v2h-312zM24,132h312v2h-312z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M24,142 C64,96 92,128 130,88 C166,50 196,82 226,64 C264,40 292,74 336,36"
|
||||
android:strokeColor="#FF4CC9F0"
|
||||
android:strokeLineCap="round"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="8" />
|
||||
<path android:fillColor="#2635D38B" android:pathData="M300,24h36v36h-36z" />
|
||||
</vector>
|
||||
14
app/src/main/res/drawable/widget_preview_server.xml
Normal file
14
app/src/main/res/drawable/widget_preview_server.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="360dp"
|
||||
android:height="180dp"
|
||||
android:viewportWidth="360"
|
||||
android:viewportHeight="180">
|
||||
<path android:fillColor="#FF171C23" android:pathData="M0,0h360v180h-360z" />
|
||||
<path android:fillColor="#FF35D38B" android:pathData="M24,24h150v24h-150z" />
|
||||
<path android:fillColor="#FF27313D" android:pathData="M24,68h250v18h-250zM24,100h250v18h-250zM24,132h250v18h-250z" />
|
||||
<path android:fillColor="#FF35D38B" android:pathData="M24,68h176v18h-176z" />
|
||||
<path android:fillColor="#FF4CC9F0" android:pathData="M24,100h214v18h-214z" />
|
||||
<path android:fillColor="#FFFFB84D" android:pathData="M24,132h142v18h-142z" />
|
||||
<path android:fillColor="#2635D38B" android:pathData="M300,24h36v36h-36z" />
|
||||
</vector>
|
||||
17
app/src/main/res/drawable/widget_progress_amber.xml
Normal file
17
app/src/main/res/drawable/widget_progress_amber.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<corners android:radius="999dp" />
|
||||
<solid android:color="#FF27313D" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape>
|
||||
<corners android:radius="999dp" />
|
||||
<solid android:color="#FFFFB84D" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
17
app/src/main/res/drawable/widget_progress_cyan.xml
Normal file
17
app/src/main/res/drawable/widget_progress_cyan.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<corners android:radius="999dp" />
|
||||
<solid android:color="#FF27313D" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape>
|
||||
<corners android:radius="999dp" />
|
||||
<solid android:color="#FF4CC9F0" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
17
app/src/main/res/drawable/widget_progress_green.xml
Normal file
17
app/src/main/res/drawable/widget_progress_green.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@android:id/background">
|
||||
<shape>
|
||||
<corners android:radius="999dp" />
|
||||
<solid android:color="#FF27313D" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:id="@android:id/progress">
|
||||
<clip>
|
||||
<shape>
|
||||
<corners android:radius="999dp" />
|
||||
<solid android:color="#FF35D38B" />
|
||||
</shape>
|
||||
</clip>
|
||||
</item>
|
||||
</layer-list>
|
||||
Reference in New Issue
Block a user