tools:showIn="@layout/activity_new_transaction">
<ScrollView
+ android:id="@+id/transaction_details"
android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:layout_height="0dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
- <EditText
- android:id="@+id/new_transaction_date"
+ <android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ems="10"
- android:hint="@string/new_transaction_date_hint"
- android:inputType="date"
- android:onClick="pickTransactionDate"
- android:textAlignment="center" />
+ android:layout_height="match_parent">
+
+ <EditText
+ android:id="@+id/new_transaction_date"
+ android:layout_width="94dp"
+ android:layout_height="wrap_content"
+ android:ems="10"
+ android:hint="@string/new_transaction_date_hint"
+ android:inputType="date"
+ android:onClick="pickTransactionDate"
+ android:textAlignment="center"
+ app:layout_constraintHorizontal_weight="8"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <AutoCompleteTextView
+ android:id="@+id/new_transaction_description"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
+ android:ems="10"
+ android:hint="@string/new_transaction_description_hint"
+ android:inputType="textPersonName"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintHorizontal_weight="30"
+ app:layout_constraintStart_toEndOf="@+id/new_transaction_date"
+ app:layout_constraintTop_toTopOf="parent" />
+ </android.support.constraint.ConstraintLayout>
<TableLayout
android:id="@+id/new_transaction_accounts_table"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- >
+ android:layout_height="match_parent">
<TableRow
android:layout_width="match_parent"
android:width="0dp"
android:hint="@string/new_transaction_account_hint"
android:nextFocusDown="@id/new_transaction_amt_1"
- android:nextFocusForward="@id/new_transaction_amt_1" />
+ android:nextFocusForward="@id/new_transaction_amt_1"
+ android:textColorLink="@android:color/background_light" />
<EditText
android:id="@+id/new_transaction_amt_1"