Make paddings between lines same in edit alarm and edit timer
This commit is contained in:
parent
c37c11dcdc
commit
69330a24f7
2 changed files with 37 additions and 31 deletions
|
@ -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,42 +84,45 @@
|
||||||
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" />
|
||||||
|
|
||||||
<ImageView
|
<LinearLayout
|
||||||
android:id="@+id/edit_alarm_label_image"
|
android:id="@+id/edit_alarm_label_holder"
|
||||||
android:layout_width="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" />
|
|
||||||
|
|
||||||
<com.simplemobiletools.commons.views.MyTextInputLayout
|
|
||||||
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:gravity="center_vertical"
|
||||||
android:layout_marginStart="@dimen/medium_margin"
|
android:orientation="horizontal"
|
||||||
android:layout_marginEnd="@dimen/bigger_margin"
|
android:paddingStart="@dimen/activity_margin"
|
||||||
android:layout_toEndOf="@+id/edit_alarm_label_image"
|
android:paddingTop="@dimen/medium_margin"
|
||||||
android:hint="@string/label">
|
android:paddingEnd="@dimen/activity_margin"
|
||||||
|
android:paddingBottom="@dimen/medium_margin"
|
||||||
|
android:layout_below="@+id/edit_alarm_sound">
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputEditText
|
<ImageView
|
||||||
android:id="@+id/edit_alarm"
|
android:id="@+id/edit_alarm_label_image"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:src="@drawable/ic_label_vector" />
|
||||||
|
|
||||||
|
<com.simplemobiletools.commons.views.MyTextInputLayout
|
||||||
|
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:maxLines="1"
|
android:layout_marginStart="@dimen/medium_margin"
|
||||||
android:singleLine="true"
|
android:layout_marginEnd="@dimen/medium_margin"
|
||||||
android:textSize="@dimen/normal_text_size" />
|
android:hint="@string/label">
|
||||||
|
|
||||||
</com.simplemobiletools.commons.views.MyTextInputLayout>
|
<com.google.android.material.textfield.TextInputEditText
|
||||||
|
android:id="@+id/edit_alarm"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textSize="@dimen/normal_text_size" />
|
||||||
|
|
||||||
|
</com.simplemobiletools.commons.views.MyTextInputLayout>
|
||||||
|
</LinearLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue