From 4e854fe78a5a2ef9898efff39efd54034b4c6f0b 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 --- Android/WeatherInformation/AndroidManifest.xml | 4 +- .../res/layout/appwidget_configure.xml | 35 ++++-- Android/WeatherInformation/res/values/strings.xml | 4 + .../res/xml/appwidget_preferences.xml | 22 ++++ .../res/xml/appwidget_provider.xml | 2 +- .../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 Android/WeatherInformation/res/xml/appwidget_preferences.xml delete mode 100644 Android/WeatherInformation/src/de/example/exampletdd/widget/WeatherInformationWidgetConfigure.java delete mode 100644 Android/WeatherInformation/src/de/example/exampletdd/widget/WeatherInformationWidgetProvider.java create mode 100644 Android/WeatherInformation/src/de/example/exampletdd/widget/WidgetConfigure.java create mode 100644 Android/WeatherInformation/src/de/example/exampletdd/widget/WidgetPreferences.java create mode 100644 Android/WeatherInformation/src/de/example/exampletdd/widget/WidgetProvider.java diff --git a/Android/WeatherInformation/AndroidManifest.xml b/Android/WeatherInformation/AndroidManifest.xml index e49f556..a626e9b 100644 --- a/Android/WeatherInformation/AndroidManifest.xml +++ b/Android/WeatherInformation/AndroidManifest.xml @@ -77,7 +77,7 @@ - + @@ -89,7 +89,7 @@ - + diff --git a/Android/WeatherInformation/res/layout/appwidget_configure.xml b/Android/WeatherInformation/res/layout/appwidget_configure.xml index 7a0764b..66463eb 100644 --- a/Android/WeatherInformation/res/layout/appwidget_configure.xml +++ b/Android/WeatherInformation/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" > -