From: Damyan Ivanov Date: Sun, 24 Nov 2019 11:14:16 +0000 (+0200) Subject: NT: convert top row to LinearLayout X-Git-Tag: v0.11.0~44 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=96b5e3772e7f0c13750c378ea788455d0f26cca6;p=mobile-ledger.git NT: convert top row to LinearLayout handles two-row date field better, aligning the description to the bottom --- 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 e515690a..57bdbfdc 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 @@ -30,7 +30,7 @@ import android.widget.LinearLayout; import android.widget.TextView; import androidx.annotation.NonNull; -import androidx.constraintlayout.widget.ConstraintLayout; +import androidx.appcompat.widget.LinearLayoutCompat; import androidx.lifecycle.Observer; import androidx.recyclerview.widget.RecyclerView; @@ -59,7 +59,7 @@ class NewTransactionItemHolder extends RecyclerView.ViewHolder private AutoCompleteTextView tvDescription; private AutoCompleteTextView tvAccount; private TextView tvAmount; - private ConstraintLayout lHead; + private LinearLayoutCompat lHead; private LinearLayout lAccount; private FrameLayout lPadding; private MobileLedgerProfile mProfile; diff --git a/app/src/main/res/layout/new_transaction_row.xml b/app/src/main/res/layout/new_transaction_row.xml index 382e9ebd..da1d70ca 100644 --- a/app/src/main/res/layout/new_transaction_row.xml +++ b/app/src/main/res/layout/new_transaction_row.xml @@ -23,7 +23,7 @@ android:animateLayoutChanges="false" android:orientation="vertical"> - @@ -31,34 +31,36 @@ + app:layout_constraintTop_toTopOf="parent" + tools:ignore="TextFields" /> - +