Using resource dimensions for margins

This commit is contained in:
Maxime NATUREL 2022-03-30 17:03:49 +02:00
parent c18a9230e5
commit 265dd4a0c3
2 changed files with 11 additions and 9 deletions

View File

@ -67,4 +67,6 @@
<dimen name="location_sharing_locate_button_margin_vertical">16dp</dimen>
<dimen name="location_sharing_locate_button_margin_horizontal">12dp</dimen>
<dimen name="location_sharing_compass_button_margin_horizontal">8dp</dimen>
<dimen name="location_sharing_live_duration_choice_margin_horizontal">12dp</dimen>
<dimen name="location_sharing_live_duration_choice_margin_vertical">22dp</dimen>
</resources>

View File

@ -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" />
<RadioButton
android:id="@+id/liveLocShareChooseDurationOption2"
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: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_2" />
<RadioButton
android:id="@+id/liveLocShareChooseDurationOption3"
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: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_3" />
</RadioGroup>