Make paddings between lines same in edit alarm and edit timer

This commit is contained in:
Ensar Sarajčić 2023-08-16 12:04:35 +02:00
parent c37c11dcdc
commit 69330a24f7
2 changed files with 37 additions and 31 deletions

View file

@ -49,9 +49,9 @@
android:layout_below="@+id/edit_alarm_days_holder" android:layout_below="@+id/edit_alarm_days_holder"
android:background="?attr/selectableItemBackground" android:background="?attr/selectableItemBackground"
android:paddingStart="@dimen/activity_margin" android:paddingStart="@dimen/activity_margin"
android:paddingTop="@dimen/normal_margin" android:paddingTop="@dimen/medium_margin"
android:paddingEnd="@dimen/activity_margin" android:paddingEnd="@dimen/activity_margin"
android:paddingBottom="@dimen/normal_margin" android:paddingBottom="@dimen/medium_margin"
android:textSize="@dimen/bigger_text_size"> android:textSize="@dimen/bigger_text_size">
<ImageView <ImageView
@ -84,32 +84,34 @@
android:background="?attr/selectableItemBackground" android:background="?attr/selectableItemBackground"
android:drawableLeft="@drawable/ic_bell_vector" android:drawableLeft="@drawable/ic_bell_vector"
android:drawablePadding="@dimen/normal_margin" android:drawablePadding="@dimen/normal_margin"
android:paddingStart="@dimen/activity_margin" android:padding="@dimen/activity_margin"
android:paddingTop="@dimen/normal_margin"
android:paddingBottom="@dimen/normal_margin"
android:textSize="@dimen/bigger_text_size" android:textSize="@dimen/bigger_text_size"
tools:text="Default alarm" /> tools:text="Default alarm" />
<LinearLayout
android:id="@+id/edit_alarm_label_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
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">
<ImageView <ImageView
android:id="@+id/edit_alarm_label_image" android:id="@+id/edit_alarm_label_image"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/edit_alarm_sound"
android:layout_alignTop="@+id/edit_alarm_hint"
android:layout_alignBottom="@+id/edit_alarm_hint"
android:layout_marginStart="@dimen/activity_margin"
android:layout_marginEnd="@dimen/tiny_margin"
android:scaleType="fitCenter"
android:src="@drawable/ic_label_vector" /> android:src="@drawable/ic_label_vector" />
<com.simplemobiletools.commons.views.MyTextInputLayout <com.simplemobiletools.commons.views.MyTextInputLayout
android:id="@+id/edit_alarm_hint" android:id="@+id/edit_alarm_hint"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/edit_alarm_sound"
android:layout_marginStart="@dimen/medium_margin" android:layout_marginStart="@dimen/medium_margin"
android:layout_marginEnd="@dimen/bigger_margin" android:layout_marginEnd="@dimen/medium_margin"
android:layout_toEndOf="@+id/edit_alarm_label_image"
android:hint="@string/label"> android:hint="@string/label">
<com.google.android.material.textfield.TextInputEditText <com.google.android.material.textfield.TextInputEditText
@ -121,5 +123,6 @@
android:textSize="@dimen/normal_text_size" /> android:textSize="@dimen/normal_text_size" />
</com.simplemobiletools.commons.views.MyTextInputLayout> </com.simplemobiletools.commons.views.MyTextInputLayout>
</LinearLayout>
</RelativeLayout> </RelativeLayout>
</ScrollView> </ScrollView>

View file

@ -29,7 +29,10 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?attr/selectableItemBackground" 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"> app:layout_constraintTop_toBottomOf="@+id/edit_timer_initial_time">
<ImageView <ImageView