From 1fea51e28ac94f033eefab81062c821f096d2293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pekka=20Ker=C3=A4nen?= Date: Wed, 11 Dec 2024 12:49:45 +0200 Subject: [PATCH 1/3] issue-717: Removed unnecessary files --- .../app/src/main/res/layout/weathercell.xml | 30 ---------- .../src/main/res/layout/weathercellsmall.xml | 35 ----------- android/app/src/main/res/layout/widgetng.xml | 60 ------------------- .../res/xml/large_widget_provider_info.xml | 8 +-- 4 files changed, 4 insertions(+), 129 deletions(-) delete mode 100644 android/app/src/main/res/layout/weathercell.xml delete mode 100644 android/app/src/main/res/layout/weathercellsmall.xml delete mode 100644 android/app/src/main/res/layout/widgetng.xml diff --git a/android/app/src/main/res/layout/weathercell.xml b/android/app/src/main/res/layout/weathercell.xml deleted file mode 100644 index 1d7cc7b1..00000000 --- a/android/app/src/main/res/layout/weathercell.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/android/app/src/main/res/layout/weathercellsmall.xml b/android/app/src/main/res/layout/weathercellsmall.xml deleted file mode 100644 index 8f20e6ef..00000000 --- a/android/app/src/main/res/layout/weathercellsmall.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - diff --git a/android/app/src/main/res/layout/widgetng.xml b/android/app/src/main/res/layout/widgetng.xml deleted file mode 100644 index fd0fb872..00000000 --- a/android/app/src/main/res/layout/widgetng.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/android/app/src/main/res/xml/large_widget_provider_info.xml b/android/app/src/main/res/xml/large_widget_provider_info.xml index 43724d14..923e9f41 100644 --- a/android/app/src/main/res/xml/large_widget_provider_info.xml +++ b/android/app/src/main/res/xml/large_widget_provider_info.xml @@ -2,12 +2,12 @@ From 81135d5a6d37a94ee440374d3cf6571a2828a317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pekka=20Ker=C3=A4nen?= Date: Wed, 11 Dec 2024 13:59:21 +0200 Subject: [PATCH 2/3] issue-717: Layout experiments --- .../main/res/layout/large_forecast_widget_layout.xml | 8 +++++++- .../main/res/xml-v31/large_widget_provider_info.xml | 11 +++++++++++ .../src/main/res/xml/large_widget_provider_info.xml | 6 ++---- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 android/app/src/main/res/xml-v31/large_widget_provider_info.xml diff --git a/android/app/src/main/res/layout/large_forecast_widget_layout.xml b/android/app/src/main/res/layout/large_forecast_widget_layout.xml index 38e02397..fd83d4c2 100644 --- a/android/app/src/main/res/layout/large_forecast_widget_layout.xml +++ b/android/app/src/main/res/layout/large_forecast_widget_layout.xml @@ -44,13 +44,15 @@ android:id="@+id/hourForecastRowLayout" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:orientation="horizontal"> + android:orientation="horizontal" + > + + diff --git a/android/app/src/main/res/xml/large_widget_provider_info.xml b/android/app/src/main/res/xml/large_widget_provider_info.xml index 923e9f41..092b3c3c 100644 --- a/android/app/src/main/res/xml/large_widget_provider_info.xml +++ b/android/app/src/main/res/xml/large_widget_provider_info.xml @@ -2,10 +2,8 @@ Date: Thu, 12 Dec 2024 09:34:46 +0200 Subject: [PATCH 3/3] issue-717: More widget size experiments --- .../layout/large_forecast_widget_layout.xml | 25 +++++-------------- .../res/layout/max_forecast_widget_layout.xml | 4 +-- .../xml-v31/large_widget_provider_info.xml | 2 +- .../res/xml-v31/max_widget_provider_info.xml | 11 ++++++++ .../xml-v31/small_widget_provider_info.xml | 15 +++++++++++ .../main/res/xml/max_widget_provider_info.xml | 2 -- .../res/xml/small_widget_provider_info.xml | 4 --- 7 files changed, 35 insertions(+), 28 deletions(-) create mode 100644 android/app/src/main/res/xml-v31/max_widget_provider_info.xml create mode 100644 android/app/src/main/res/xml-v31/small_widget_provider_info.xml diff --git a/android/app/src/main/res/layout/large_forecast_widget_layout.xml b/android/app/src/main/res/layout/large_forecast_widget_layout.xml index fd83d4c2..ad92f87d 100644 --- a/android/app/src/main/res/layout/large_forecast_widget_layout.xml +++ b/android/app/src/main/res/layout/large_forecast_widget_layout.xml @@ -1,8 +1,8 @@ @@ -17,7 +17,9 @@ android:id="@+id/locationLayout" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:orientation="horizontal"> + android:orientation="horizontal" + android:gravity="top" + > - - diff --git a/android/app/src/main/res/xml-v31/large_widget_provider_info.xml b/android/app/src/main/res/xml-v31/large_widget_provider_info.xml index f5aa42c8..7ca86ce5 100644 --- a/android/app/src/main/res/xml-v31/large_widget_provider_info.xml +++ b/android/app/src/main/res/xml-v31/large_widget_provider_info.xml @@ -3,7 +3,7 @@ android:configure="fi.fmi.mobileweather.LargeForecastWidgetConfigurationActivity" android:initialLayout="@layout/large_forecast_widget_layout" android:targetCellWidth="4" - android:targetCellHeight="2" + android:targetCellHeight="1" android:previewImage="@drawable/large_forecast_widget_preview" android:resizeMode="none" android:updatePeriodMillis="0" diff --git a/android/app/src/main/res/xml-v31/max_widget_provider_info.xml b/android/app/src/main/res/xml-v31/max_widget_provider_info.xml new file mode 100644 index 00000000..c798f178 --- /dev/null +++ b/android/app/src/main/res/xml-v31/max_widget_provider_info.xml @@ -0,0 +1,11 @@ + + + diff --git a/android/app/src/main/res/xml-v31/small_widget_provider_info.xml b/android/app/src/main/res/xml-v31/small_widget_provider_info.xml new file mode 100644 index 00000000..bd88c604 --- /dev/null +++ b/android/app/src/main/res/xml-v31/small_widget_provider_info.xml @@ -0,0 +1,15 @@ + + + diff --git a/android/app/src/main/res/xml/max_widget_provider_info.xml b/android/app/src/main/res/xml/max_widget_provider_info.xml index e6099888..6d25b263 100644 --- a/android/app/src/main/res/xml/max_widget_provider_info.xml +++ b/android/app/src/main/res/xml/max_widget_provider_info.xml @@ -6,8 +6,6 @@ android:minHeight="100dp" android:previewImage="@drawable/max_forecast_widget_preview" android:resizeMode="none" - android:targetCellWidth="4" - android:targetCellHeight="3" android:updatePeriodMillis="0" android:widgetCategory="home_screen"> diff --git a/android/app/src/main/res/xml/small_widget_provider_info.xml b/android/app/src/main/res/xml/small_widget_provider_info.xml index bd88c604..c74651b7 100644 --- a/android/app/src/main/res/xml/small_widget_provider_info.xml +++ b/android/app/src/main/res/xml/small_widget_provider_info.xml @@ -2,14 +2,10 @@