]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/template_details_account.xml
visual improvements in template editor
[mobile-ledger.git] / app / src / main / res / layout / template_details_account.xml
index 0eeb78b97c723d0690dc447828bb6cfc6a098707..a55a4e12106cc94e35087080ac6c4d0128eeccdf 100644 (file)
@@ -28,7 +28,8 @@
         android:layout_height="match_parent"
         android:gravity="end"
         android:paddingTop="@dimen/text_margin"
-        android:text="@string/pattern_details_account_row_label"
+        android:text="@string/template_details_account_row_label"
+        android:textAppearance="?attr/textAppearanceListItem"
         app:drawableBottomCompat="@drawable/dashed_border_8dp"
         />
     <TextView
         android:layout_height="wrap_content"
         android:layout_marginHorizontal="@dimen/text_margin"
         android:textAppearance="?attr/textAppearanceListItem"
+        app:endIconMode="clear_text"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toBottomOf="@id/template_details_account_name_source"
         >
-        <com.google.android.material.textfield.TextInputEditText
+        <com.google.android.material.textfield.MaterialAutoCompleteTextView
             android:id="@+id/template_details_account_name"
+            style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:hint="@string/pattern_details_account_name_label"
+            android:hint="@string/template_details_account_name_label"
             android:inputType="text"
             />
     </com.google.android.material.textfield.TextInputLayout>
         android:layout_height="wrap_content"
         android:layout_marginHorizontal="@dimen/text_margin"
         android:textAppearance="?attr/textAppearanceListItem"
+        app:endIconMode="clear_text"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toBottomOf="@id/template_details_account_comment_source"
             android:id="@+id/template_details_account_comment"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:hint="@string/pattern_details_account_comment_label"
+            android:hint="@string/template_details_account_comment_label"
             android:inputType="text"
             />
     </com.google.android.material.textfield.TextInputLayout>
             android:id="@+id/template_details_account_amount"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:hint="@string/pattern_details_account_amount_label"
+            android:hint="@string/template_details_account_amount_label"
             android:inputType="number|numberDecimal|numberSigned"
+            android:selectAllOnFocus="true"
             />
     </com.google.android.material.textfield.TextInputLayout>