From: Damyan Ivanov Date: Wed, 23 Dec 2020 20:51:02 +0000 (+0000) Subject: fix currency selector layout with long list of currencies X-Git-Tag: v0.16.0~22 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=acde9a0949b67ea7f180dd3a7eed1e8391c0d8e6;p=mobile-ledger.git fix currency selector layout with long list of currencies --- diff --git a/app/src/main/res/layout/fragment_currency_selector_list.xml b/app/src/main/res/layout/fragment_currency_selector_list.xml index 7fd49aa2..a44f0ec1 100644 --- a/app/src/main/res/layout/fragment_currency_selector_list.xml +++ b/app/src/main/res/layout/fragment_currency_selector_list.xml @@ -20,10 +20,11 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:minWidth="60dp" android:animateLayoutChanges="true" + android:minWidth="60dp" + android:padding="@dimen/text_margin" app:layout_constraintWidth_min="60dp" - android:padding="@dimen/text_margin"> + > + app:layout_constraintTop_toTopOf="parent" + /> + tools:listitem="@layout/fragment_currency_selector" + > @@ -59,33 +64,36 @@ android:layout_height="wrap_content" android:layout_marginLeft="@dimen/activity_horizontal_margin" android:layout_marginRight="@dimen/activity_horizontal_margin" - app:layout_constraintTop_toBottomOf="@id/list" app:layout_constraintBottom_toTopOf="@id/params_panel" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent"> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/list" + > + app:layout_constraintTop_toTopOf="parent" + /> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + /> + app:layout_constraintTop_toTopOf="parent" + android:autofillHints="currency" + /> + app:layout_constraintTop_toBottomOf="@id/new_currency_name" + /> + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/new_currency_panel" + > + android:text="@string/currency_position_left" + /> + android:text="@string/currency_position_right" + /> - + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/position_radio_group" + />