From f9385e730ea6d1cc478abc1d6772d61821e96f01 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 23 Dec 2019 19:27:47 +0200 Subject: [PATCH] NT: convert row to ConstraintLayout --- .../ui/activity/NewTransactionItemHolder.java | 3 ++- app/src/main/res/layout/new_transaction_row.xml | 16 ++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java index 9ee32ea7..e4d1d503 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java @@ -23,6 +23,7 @@ import android.text.Editable; import android.text.TextWatcher; import android.text.method.DigitsKeyListener; import android.view.View; +import android.view.ViewGroup; import android.view.inputmethod.EditorInfo; import android.widget.AutoCompleteTextView; import android.widget.FrameLayout; @@ -60,7 +61,7 @@ class NewTransactionItemHolder extends RecyclerView.ViewHolder private AutoCompleteTextView tvAccount; private TextView tvAmount; private LinearLayout lHead; - private LinearLayout lAccount; + private ViewGroup lAccount; private FrameLayout lPadding; private MobileLedgerProfile mProfile; private Date date; diff --git a/app/src/main/res/layout/new_transaction_row.xml b/app/src/main/res/layout/new_transaction_row.xml index 885adbe7..9210b298 100644 --- a/app/src/main/res/layout/new_transaction_row.xml +++ b/app/src/main/res/layout/new_transaction_row.xml @@ -75,13 +75,12 @@ app:layout_constraintTop_toTopOf="parent" /> - - + android:selectAllOnFocus="false" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + android:textAlignment="viewEnd" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toBottomOf="@id/account_row_acc_name" /> - +