From f89b05dbccfa328e023b2e679e0286f2813d64f7 Mon Sep 17 00:00:00 2001 From: swissalpine Date: Fri, 18 Feb 2022 10:39:46 +0100 Subject: [PATCH 1/3] Background images needs another sizing Sorry for the renewed PR - but I was not aware that the size ratios of the background images differ from the "normal" images. --- app/src/main/res/layout/dialog_wizard.xml | 33 ++++++++++++----------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/app/src/main/res/layout/dialog_wizard.xml b/app/src/main/res/layout/dialog_wizard.xml index 108808e800..ba35d9a31a 100644 --- a/app/src/main/res/layout/dialog_wizard.xml +++ b/app/src/main/res/layout/dialog_wizard.xml @@ -255,10 +255,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:paddingStart="5dp" - android:paddingEnd="5dp" - android:scaleX="0.7" - android:scaleY="0.7" + android:paddingStart="10dp" + android:paddingEnd="10dp" + android:scaleX="1.4" + android:scaleY="1.4" android:button="@drawable/checkbox_bg_icon" android:checked="true" android:contentDescription="@string/treatments_wizard_bg_label" /> @@ -268,10 +268,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:paddingStart="5dp" - android:paddingEnd="5dp" - android:scaleX="0.7" - android:scaleY="0.7" + android:paddingStart="10dp" + android:paddingEnd="10dp" + android:scaleX="1.4" + android:scaleY="1.4" android:button="@drawable/checkbox_trend_icon" android:checked="true" android:contentDescription="@string/bg_trend_label" /> @@ -281,10 +281,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:paddingStart="5dp" - android:paddingEnd="5dp" - android:scaleX="0.9" - android:scaleY="0.9" + android:paddingStart="10dp" + android:paddingEnd="10dp" + android:scaleX="1.4" + android:scaleY="1.4" android:button="@drawable/checkbox_iob_icon" android:checked="true" android:contentDescription="@string/iob" /> @@ -294,14 +294,15 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:paddingStart="5dp" - android:paddingEnd="5dp" - android:scaleX="0.7" - android:scaleY="0.7" + android:paddingStart="0dp" + android:paddingEnd="0dp" + android:scaleX="1.6" + android:scaleY="1.6" android:button="@drawable/checkbox_cob_icon" android:checked="true" android:contentDescription="@string/treatments_wizard_cob_label" /> + Date: Fri, 18 Feb 2022 11:04:05 +0100 Subject: [PATCH 2/3] Some space at the top --- app/src/main/res/layout/dialog_wizard.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/layout/dialog_wizard.xml b/app/src/main/res/layout/dialog_wizard.xml index ba35d9a31a..c312530c52 100644 --- a/app/src/main/res/layout/dialog_wizard.xml +++ b/app/src/main/res/layout/dialog_wizard.xml @@ -245,7 +245,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center|center_vertical" - android:layout_marginTop="0dp" + android:layout_marginTop="5dp" android:background="@android:color/transparent" android:orientation="horizontal" android:padding="0dp"> From a2c6db4b572245895b7f94332d3f2ed14b5af910 Mon Sep 17 00:00:00 2001 From: swissalpine Date: Sat, 19 Feb 2022 00:56:31 +0100 Subject: [PATCH 3/3] Centered Icons @ Philoul: Thanks for the suggestion! --- app/src/main/res/layout/dialog_wizard.xml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/app/src/main/res/layout/dialog_wizard.xml b/app/src/main/res/layout/dialog_wizard.xml index c312530c52..25eb86dd89 100644 --- a/app/src/main/res/layout/dialog_wizard.xml +++ b/app/src/main/res/layout/dialog_wizard.xml @@ -245,7 +245,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center|center_vertical" - android:layout_marginTop="5dp" + android:layout_marginTop="10dp" android:background="@android:color/transparent" android:orientation="horizontal" android:padding="0dp"> @@ -254,9 +254,8 @@ android:id="@+id/bg_checkbox_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:paddingStart="10dp" - android:paddingEnd="10dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" android:scaleX="1.4" android:scaleY="1.4" android:button="@drawable/checkbox_bg_icon" @@ -267,9 +266,8 @@ android:id="@+id/trend_checkbox_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:paddingStart="10dp" - android:paddingEnd="10dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" android:scaleX="1.4" android:scaleY="1.4" android:button="@drawable/checkbox_trend_icon" @@ -280,9 +278,8 @@ android:id="@+id/iob_checkbox_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:paddingStart="10dp" - android:paddingEnd="10dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" android:scaleX="1.4" android:scaleY="1.4" android:button="@drawable/checkbox_iob_icon" @@ -293,16 +290,14 @@ android:id="@+id/cob_checkbox_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:paddingStart="0dp" - android:paddingEnd="0dp" + android:layout_marginLeft="15dp" + android:layout_marginRight="15dp" android:scaleX="1.6" android:scaleY="1.6" android:button="@drawable/checkbox_cob_icon" android:checked="true" android:contentDescription="@string/treatments_wizard_cob_label" /> -