From ac5df95afface6168917e4ad07fcb3ef50e29867 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Thu, 9 Oct 2014 21:35:22 +0200 Subject: [PATCH] WeatherInformation: widget preferences WIP --- AndroidManifest.xml | 4 +- res/layout/appwidget_configure.xml | 35 ++++-- res/values/strings.xml | 4 + res/xml/appwidget_preferences.xml | 22 ++++ res/xml/appwidget_provider.xml | 2 +- src/de/example/exampletdd/WidgetIntentService.java | 4 +- .../widget/WeatherInformationWidgetConfigure.java | 61 ----------- .../widget/WeatherInformationWidgetProvider.java | 64 ----------- .../example/exampletdd/widget/WidgetConfigure.java | 84 ++++++++++++++ .../exampletdd/widget/WidgetPreferences.java | 121 +++++++++++++++++++++ .../example/exampletdd/widget/WidgetProvider.java | 64 +++++++++++ 11 files changed, 326 insertions(+), 139 deletions(-) create mode 100644 res/xml/appwidget_preferences.xml delete mode 100644 src/de/example/exampletdd/widget/WeatherInformationWidgetConfigure.java delete mode 100644 src/de/example/exampletdd/widget/WeatherInformationWidgetProvider.java create mode 100644 src/de/example/exampletdd/widget/WidgetConfigure.java create mode 100644 src/de/example/exampletdd/widget/WidgetPreferences.java create mode 100644 src/de/example/exampletdd/widget/WidgetProvider.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index e49f556..a626e9b 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -77,7 +77,7 @@ - + @@ -89,7 +89,7 @@ - + diff --git a/res/layout/appwidget_configure.xml b/res/layout/appwidget_configure.xml index 7a0764b..66463eb 100644 --- a/res/layout/appwidget_configure.xml +++ b/res/layout/appwidget_configure.xml @@ -1,19 +1,36 @@ - + android:layout_height="match_parent" + android:layout_gravity="fill_vertical|fill_horizontal" > - + android:layout_alignParentTop="true" + android:layout_gravity="center" + android:orientation="horizontal" > -