diff options
author | Allan Wang <me@allanwang.ca> | 2019-04-24 23:54:27 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-04-24 23:54:27 -0700 |
commit | e627bc4f1fbf50216f74c53c6a4812beb6d2d055 (patch) | |
tree | 0200e77bfc43dfeb954d36d5df14b445a091356f /app/src/main/res | |
parent | 14578e26fcd39cf671aa4584d3abf311a66afba2 (diff) | |
download | frost-e627bc4f1fbf50216f74c53c6a4812beb6d2d055.tar.gz frost-e627bc4f1fbf50216f74c53c6a4812beb6d2d055.tar.bz2 frost-e627bc4f1fbf50216f74c53c6a4812beb6d2d055.zip |
Remove unnecessary components
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/ic_refresh_24dp.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/drawable/notification_widget_preview.xml | 49 | ||||
-rw-r--r-- | app/src/main/res/xml/notification_widget_info.xml | 10 |
3 files changed, 56 insertions, 8 deletions
diff --git a/app/src/main/res/drawable/ic_refresh_24dp.xml b/app/src/main/res/drawable/ic_refresh_24dp.xml deleted file mode 100644 index cc2d1e04..00000000 --- a/app/src/main/res/drawable/ic_refresh_24dp.xml +++ /dev/null @@ -1,5 +0,0 @@ -<vector android:height="24dp" android:tint="#FFFFFF" - android:viewportHeight="24.0" android:viewportWidth="24.0" - android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> - <path android:fillColor="#FF000000" android:pathData="M17.65,6.35C16.2,4.9 14.21,4 12,4c-4.42,0 -7.99,3.58 -7.99,8s3.57,8 7.99,8c3.73,0 6.84,-2.55 7.73,-6h-2.08c-0.82,2.33 -3.04,4 -5.65,4 -3.31,0 -6,-2.69 -6,-6s2.69,-6 6,-6c1.66,0 3.14,0.69 4.22,1.78L13,11h7V4l-2.35,2.35z"/> -</vector> diff --git a/app/src/main/res/drawable/notification_widget_preview.xml b/app/src/main/res/drawable/notification_widget_preview.xml new file mode 100644 index 00000000..a4ead7d0 --- /dev/null +++ b/app/src/main/res/drawable/notification_widget_preview.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:id="@id/intro_phone" + android:drawable="@drawable/intro_phone_case" /> + <item + android:id="@id/intro_phone_screen" + android:drawable="@drawable/intro_phone_screen" /> + <item + android:id="@+id/intro_phone_nav" + android:bottom="10dp" + android:left="3dp" + android:right="23dp" + android:top="50dp"> + <shape> + <solid android:color="#f0f" /> + </shape> + </item> + <item + android:id="@+id/intro_phone_header" + android:bottom="110dp" + android:left="3dp" + android:right="23dp" + android:top="10dp"> + <shape> + <solid android:color="#f00" /> + </shape> + </item> + <item + android:id="@+id/intro_phone_avatar_1" + android:bottom="130dp" + android:left="8dp" + android:right="67dp" + android:top="15dp"> + <shape android:shape="oval"> + <solid android:color="#f0f" /> + </shape> + </item> + <item + android:id="@+id/intro_phone_avatar_2" + android:bottom="135dp" + android:left="53dp" + android:right="27dp" + android:top="15dp"> + <shape android:shape="oval"> + <solid android:color="#f0f" /> + </shape> + </item> +</layer-list>
\ No newline at end of file diff --git a/app/src/main/res/xml/notification_widget_info.xml b/app/src/main/res/xml/notification_widget_info.xml index 2b8b4fb5..c14bbfb2 100644 --- a/app/src/main/res/xml/notification_widget_info.xml +++ b/app/src/main/res/xml/notification_widget_info.xml @@ -1,6 +1,10 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?><!-- +For sizing see: +https://developer.android.com/guide/practices/ui_guidelines/widget_design.html#anatomy_determining_size +--> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:initialKeyguardLayout="@layout/widget_notifications" android:initialLayout="@layout/widget_notifications" - android:minHeight="110dp" - android:minWidth="180dp"/> + android:minWidth="180dp" + android:minHeight="250dp" + android:previewImage="@drawable/notification_widget_preview" /> |