From bc492750fbb514d30d8aa154827443092cd83a5d Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Mon, 23 Nov 2020 22:02:57 +0100 Subject: [PATCH] Add some padding between Omnipod button icon & text --- .../icon_pod_management_activate_pod.xml | 17 +++++------------ .../src/main/res/layout/omnipod_overview.xml | 6 ++++++ .../main/res/layout/omnipod_pod_management.xml | 7 +++++++ omnipod/src/main/res/values/dimens.xml | 1 + 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/omnipod/src/main/res/drawable/icon_pod_management_activate_pod.xml b/omnipod/src/main/res/drawable/icon_pod_management_activate_pod.xml index 8f71e8ed1c..f0773c48e6 100644 --- a/omnipod/src/main/res/drawable/icon_pod_management_activate_pod.xml +++ b/omnipod/src/main/res/drawable/icon_pod_management_activate_pod.xml @@ -1,13 +1,6 @@ - - - + + + diff --git a/omnipod/src/main/res/layout/omnipod_overview.xml b/omnipod/src/main/res/layout/omnipod_overview.xml index 7da99f4579..a873bfe104 100644 --- a/omnipod/src/main/res/layout/omnipod_overview.xml +++ b/omnipod/src/main/res/layout/omnipod_overview.xml @@ -748,6 +748,7 @@ android:layout_height="match_parent" android:layout_weight="1" android:drawableTop="@drawable/icon_omnipod_overview_refresh_pod_status" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/omnipod_overview_button_refresh" /> @@ -759,6 +760,7 @@ android:layout_height="match_parent" android:layout_weight="1" android:drawableTop="@drawable/icon_omnipod_overview_pod_management" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/omnipod_overview_button_pod_management" /> @@ -770,6 +772,7 @@ android:layout_height="match_parent" android:layout_weight="1" android:drawableTop="@drawable/icon_omnipod_overview_acknowledge_alerts" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/omnipod_overview_button_acknowledge_active_alerts" /> @@ -781,6 +784,7 @@ android:layout_height="match_parent" android:layout_weight="1" android:drawableTop="@drawable/icon_omnipod_overview_set_time" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/omnipod_overview_button_set_time" @@ -793,6 +797,7 @@ android:layout_height="match_parent" android:layout_weight="1" android:drawableTop="@drawable/icon_omnipod_overview_resume_delivery" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/omnipod_overview_button_resume_delivery" @@ -805,6 +810,7 @@ android:layout_height="match_parent" android:layout_weight="1" android:drawableTop="@drawable/icon_omnipod_overview_suspend_delivery" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:paddingLeft="0dp" android:paddingRight="0dp" android:text="@string/omnipod_overview_button_suspend_delivery" diff --git a/omnipod/src/main/res/layout/omnipod_pod_management.xml b/omnipod/src/main/res/layout/omnipod_pod_management.xml index 577c5960fd..d9cf031689 100644 --- a/omnipod/src/main/res/layout/omnipod_pod_management.xml +++ b/omnipod/src/main/res/layout/omnipod_pod_management.xml @@ -63,6 +63,7 @@ android:layout_marginRight="40dp" android:layout_weight="0.5" android:drawableTop="@drawable/icon_pod_management_activate_pod" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:text="@string/omnipod_pod_management_button_activate_pod" android:textAllCaps="false" /> @@ -76,6 +77,7 @@ android:layout_marginRight="40dp" android:layout_weight="0.5" android:drawableTop="@drawable/icon_pod_management_deactivate_pod" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:text="@string/omnipod_pod_management_button_deactivate_pod" android:textAllCaps="false" /> @@ -89,6 +91,7 @@ android:layout_marginRight="40dp" android:layout_weight="0.5" android:drawableTop="@drawable/icon_pod_management_discard_pod" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:text="@string/omnipod_pod_management_button_discard_pod" android:textAllCaps="false" /> @@ -102,6 +105,7 @@ android:layout_marginRight="40dp" android:layout_weight="0.5" android:drawableTop="@drawable/icon_pod_management_play_test_beep" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:text="@string/omnipod_pod_management_button_play_test_beep" android:textAllCaps="false" /> @@ -115,6 +119,7 @@ android:layout_marginRight="40dp" android:layout_weight="0.5" android:drawableTop="@drawable/icon_pod_management_pulse_log" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:text="@string/omnipod_pod_management_button_read_pulse_log" android:textAllCaps="false" android:visibility="gone" /> @@ -129,6 +134,7 @@ android:layout_marginRight="40dp" android:layout_weight="0.5" android:drawableTop="@drawable/icon_pod_management_pod_history" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:text="@string/omnipod_pod_management_button_pod_history" android:textAllCaps="false" /> @@ -142,6 +148,7 @@ android:layout_marginRight="40dp" android:layout_weight="0.5" android:drawableTop="@drawable/icon_pod_management_rl_stats" + android:drawablePadding="@dimen/omnipod_icon_button_drawable_padding" android:text="@string/omnipod_pod_management_button_riley_link_stats" android:textAllCaps="false" /> diff --git a/omnipod/src/main/res/values/dimens.xml b/omnipod/src/main/res/values/dimens.xml index fba59bf307..62deaa8023 100644 --- a/omnipod/src/main/res/values/dimens.xml +++ b/omnipod/src/main/res/values/dimens.xml @@ -1,4 +1,5 @@ 10dp + 4dp \ No newline at end of file