From: Damyan Ivanov Date: Sat, 13 Feb 2021 16:01:12 +0000 (+0200) Subject: fu: visual improvements in template editor X-Git-Tag: v0.17.0~135 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;ds=sidebyside;h=6fd39f274bc7f05a055f3359ea6863b1de82e2b4;hp=6d61df660f7348452f168d89dfa9b75f4051d2f4;p=mobile-ledger.git fu: visual improvements in template editor --- diff --git a/app/src/main/res/layout/template_details_account.xml b/app/src/main/res/layout/template_details_account.xml index a55a4e12..d3abe292 100644 --- a/app/src/main/res/layout/template_details_account.xml +++ b/app/src/main/res/layout/template_details_account.xml @@ -39,6 +39,7 @@ android:paddingTop="@dimen/text_margin" android:text="@string/account_name_source_label" android:textAppearance="?attr/textAppearanceListItem" + app:layout_constraintBottom_toTopOf="@+id/template_details_account_name_source" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/pattern_account_label" @@ -49,6 +50,7 @@ android:layout_height="wrap_content" android:minWidth="100dp" android:textAppearance="?attr/textAppearanceListItemSecondary" + app:layout_constraintBottom_toTopOf="@+id/template_details_account_name_layout" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/template_account_name_source_label" @@ -57,9 +59,10 @@ android:id="@+id/template_details_account_name_layout" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginHorizontal="@dimen/text_margin" + android:layout_marginBottom="@dimen/text_margin" android:textAppearance="?attr/textAppearanceListItem" app:endIconMode="clear_text" + app:layout_constraintBottom_toTopOf="@+id/template_account_comment_source_label" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/template_details_account_name_source" @@ -78,10 +81,9 @@ android:id="@+id/template_account_comment_source_label" android:layout_width="0dp" android:layout_height="match_parent" - - android:paddingTop="@dimen/text_margin" android:text="@string/account_comment_source_label" android:textAppearance="?attr/textAppearanceListItem" + app:layout_constraintBottom_toTopOf="@+id/template_details_account_comment_source" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/template_details_account_name_layout" @@ -92,6 +94,7 @@ android:layout_height="wrap_content" android:minWidth="100dp" android:textAppearance="?attr/textAppearanceListItemSecondary" + app:layout_constraintBottom_toTopOf="@+id/template_details_account_comment_layout" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/template_account_comment_source_label" @@ -100,9 +103,10 @@ android:id="@+id/template_details_account_comment_layout" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginHorizontal="@dimen/text_margin" + android:layout_marginBottom="@dimen/text_margin" android:textAppearance="?attr/textAppearanceListItem" app:endIconMode="clear_text" + app:layout_constraintBottom_toTopOf="@+id/template_account_amount_source_label" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/template_details_account_comment_source" @@ -120,9 +124,9 @@ android:id="@+id/template_account_amount_source_label" android:layout_width="0dp" android:layout_height="match_parent" - android:paddingTop="@dimen/text_margin" android:text="@string/account_amount_source_label" android:textAppearance="?attr/textAppearanceListItem" + app:layout_constraintBottom_toTopOf="@+id/template_details_account_amount_source" app:layout_constraintEnd_toStartOf="@id/negate_amount_switch" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/template_details_account_comment_layout" @@ -132,6 +136,7 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:textAppearance="?attr/textAppearanceListItemSecondary" + app:layout_constraintBottom_toTopOf="@+id/template_details_account_amount_layout" app:layout_constraintEnd_toStartOf="@id/negate_amount_switch" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/template_account_amount_source_label" @@ -148,8 +153,9 @@ android:id="@+id/template_details_account_amount_layout" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginHorizontal="@dimen/text_margin" + android:layout_marginBottom="@dimen/text_margin" android:textAppearance="?attr/textAppearanceListItem" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/template_details_account_amount_source"