From 1acba8191e68c5d933496b8cd04b3c4bcf5b578e Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 26 Sep 2016 21:26:31 +0200 Subject: [PATCH] make the widget nicer --- app/src/main/res/drawable/circles_small.xml | 34 +++++++++++++-------- app/src/main/res/layout/widget.xml | 5 +-- app/src/main/res/xml/widget_info.xml | 3 +- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/app/src/main/res/drawable/circles_small.xml b/app/src/main/res/drawable/circles_small.xml index 7650b87..72c1748 100644 --- a/app/src/main/res/drawable/circles_small.xml +++ b/app/src/main/res/drawable/circles_small.xml @@ -1,28 +1,39 @@ + + android:bottom="0px" + android:left="0px" + android:right="60dp" + android:top="60dp"> + + + + + + + android:bottom="10dp" + android:left="10dp" + android:right="10dp" + android:top="10dp"> @@ -32,10 +43,9 @@ - diff --git a/app/src/main/res/layout/widget.xml b/app/src/main/res/layout/widget.xml index c374e2c..905f963 100644 --- a/app/src/main/res/layout/widget.xml +++ b/app/src/main/res/layout/widget.xml @@ -2,5 +2,6 @@ + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="5dp"/> diff --git a/app/src/main/res/xml/widget_info.xml b/app/src/main/res/xml/widget_info.xml index acd05ed..9a591b9 100644 --- a/app/src/main/res/xml/widget_info.xml +++ b/app/src/main/res/xml/widget_info.xml @@ -3,4 +3,5 @@ android:configure="com.simplemobiletools.flashlight.activities.WidgetConfigureActivity" android:initialLayout="@layout/widget" android:minHeight="40dp" - android:minWidth="40dp"/> + android:minWidth="40dp" + android:previewImage="@drawable/circles_small"/>