From 69330a24f7cfcf67377500e72aafd75ce3749869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Wed, 16 Aug 2023 12:04:35 +0200 Subject: [PATCH] Make paddings between lines same in edit alarm and edit timer --- app/src/main/res/layout/dialog_edit_alarm.xml | 63 ++++++++++--------- app/src/main/res/layout/dialog_edit_timer.xml | 5 +- 2 files changed, 37 insertions(+), 31 deletions(-) diff --git a/app/src/main/res/layout/dialog_edit_alarm.xml b/app/src/main/res/layout/dialog_edit_alarm.xml index 00e5c56..6be80b2 100644 --- a/app/src/main/res/layout/dialog_edit_alarm.xml +++ b/app/src/main/res/layout/dialog_edit_alarm.xml @@ -49,9 +49,9 @@ android:layout_below="@+id/edit_alarm_days_holder" android:background="?attr/selectableItemBackground" android:paddingStart="@dimen/activity_margin" - android:paddingTop="@dimen/normal_margin" + android:paddingTop="@dimen/medium_margin" android:paddingEnd="@dimen/activity_margin" - android:paddingBottom="@dimen/normal_margin" + android:paddingBottom="@dimen/medium_margin" android:textSize="@dimen/bigger_text_size"> - - - + android:gravity="center_vertical" + android:orientation="horizontal" + android:paddingStart="@dimen/activity_margin" + android:paddingTop="@dimen/medium_margin" + android:paddingEnd="@dimen/activity_margin" + android:paddingBottom="@dimen/medium_margin" + android:layout_below="@+id/edit_alarm_sound"> - + + + android:layout_marginStart="@dimen/medium_margin" + android:layout_marginEnd="@dimen/medium_margin" + android:hint="@string/label"> - + + + + diff --git a/app/src/main/res/layout/dialog_edit_timer.xml b/app/src/main/res/layout/dialog_edit_timer.xml index ea502d9..5049360 100644 --- a/app/src/main/res/layout/dialog_edit_timer.xml +++ b/app/src/main/res/layout/dialog_edit_timer.xml @@ -29,7 +29,10 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/selectableItemBackground" - android:padding="@dimen/activity_margin" + android:paddingStart="@dimen/activity_margin" + android:paddingTop="@dimen/medium_margin" + android:paddingEnd="@dimen/activity_margin" + android:paddingBottom="@dimen/medium_margin" app:layout_constraintTop_toBottomOf="@+id/edit_timer_initial_time">