]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/content_new_transaction.xml
auto-completion for the transaction description
[mobile-ledger.git] / app / src / main / res / layout / content_new_transaction.xml
index 0d284493e5b8b0cd051fd029607ecaa0c8e3a7ec..32756060f9209a6b7725b8879078c76f807abb46 100644 (file)
@@ -6,7 +6,7 @@
     android:layout_height="match_parent"
     app:layout_behavior="@string/appbar_scrolling_view_behavior"
     tools:context=".NewTransactionActivity"
-    tools:showIn="@layout/activity_account_summary">
+    tools:showIn="@layout/activity_new_transaction">
 
     <ScrollView
         android:id="@+id/transaction_details"
                     app:layout_constraintStart_toStartOf="parent"
                     app:layout_constraintTop_toTopOf="parent" />
 
-                <EditText
+                <AutoCompleteTextView
                     android:id="@+id/new_transaction_description"
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_marginStart="8dp"
-                    android:autofillHints=""
                     android:ems="10"
                     android:hint="@string/new_transaction_description_hint"
                     android:inputType="textPersonName"
@@ -70,7 +69,8 @@
                         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"