From 265dd4a0c309148b9a97adb75b1f103364ad5eec Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Wed, 30 Mar 2022 17:03:49 +0200 Subject: [PATCH] Using resource dimensions for margins --- .../ui-styles/src/main/res/values/dimens.xml | 2 ++ ...eet_choose_live_location_share_duration.xml | 18 +++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/library/ui-styles/src/main/res/values/dimens.xml b/library/ui-styles/src/main/res/values/dimens.xml index 600c73c878..8dd7188327 100644 --- a/library/ui-styles/src/main/res/values/dimens.xml +++ b/library/ui-styles/src/main/res/values/dimens.xml @@ -67,4 +67,6 @@ 16dp 12dp 8dp + 12dp + 22dp diff --git a/vector/src/main/res/layout/bottom_sheet_choose_live_location_share_duration.xml b/vector/src/main/res/layout/bottom_sheet_choose_live_location_share_duration.xml index 3336c0bac0..d7f61fed7d 100644 --- a/vector/src/main/res/layout/bottom_sheet_choose_live_location_share_duration.xml +++ b/vector/src/main/res/layout/bottom_sheet_choose_live_location_share_duration.xml @@ -26,28 +26,28 @@ android:id="@+id/liveLocShareChooseDurationOption1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginHorizontal="12dp" - android:paddingHorizontal="12dp" - android:paddingVertical="22dp" + android:layout_marginHorizontal="@dimen/location_sharing_live_duration_choice_margin_horizontal" android:checked="true" + android:paddingHorizontal="@dimen/location_sharing_live_duration_choice_margin_horizontal" + android:paddingVertical="@dimen/location_sharing_live_duration_choice_margin_vertical" android:text="@string/location_share_live_select_duration_option_1" />