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;
private AutoCompleteTextView tvAccount;
private TextView tvAmount;
private LinearLayout lHead;
- private LinearLayout lAccount;
+ private ViewGroup lAccount;
private FrameLayout lPadding;
private MobileLedgerProfile mProfile;
private Date date;
app:layout_constraintTop_toTopOf="parent" />
</LinearLayout>
- <LinearLayout
+ <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/ntr_account"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
-
<net.ktnx.mobileledger.ui.AutoCompleteTextViewWithClear
android:id="@+id/account_row_acc_name"
android:layout_width="0dp"
android:hint="@string/new_transaction_account_hint"
android:imeOptions="actionNext"
android:inputType="text"
- android:selectAllOnFocus="false" />
+ android:selectAllOnFocus="false"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/account_row_acc_amounts"
android:hint="@string/zero_amount"
android:imeOptions="actionNext"
android:inputType="numberSigned|numberDecimal|number"
- android:minWidth="70sp"
+ android:minWidth="80sp"
android:selectAllOnFocus="true"
- android:textAlignment="viewEnd" />
+ android:textAlignment="viewEnd"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/account_row_acc_name" />
- </LinearLayout>
+ </androidx.constraintlayout.widget.ConstraintLayout>
<FrameLayout
android:id="@+id/ntr_padding"