]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/template_details_account.xml
fixed auto-complete pop-up background color for the material layout too
[mobile-ledger.git] / app / src / main / res / layout / template_details_account.xml
index a0cae77467a260268830fc13cdac16202087b154..d91bd577ea6ae4a5488f596f9b8d8eaa48417363 100644 (file)
         android:id="@+id/pattern_account_label"
         android:layout_width="0dp"
         android:layout_height="wrap_content"
-        android:gravity="end"
+        android:clickable="false"
         android:text="@string/template_details_account_row_label"
         android:textAppearance="?attr/textAppearanceListItem"
         app:drawableBottomCompat="@drawable/dashed_border_8dp"
         app:drawableStartCompat="@drawable/ic_baseline_drag_handle_24"
         app:layout_constraintBottom_toTopOf="@id/template_account_name_source_label"
         app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintHorizontal_bias="1.0"
         app:layout_constraintTop_toTopOf="parent"
         />
     <TextView
@@ -74,7 +73,8 @@
         >
         <com.google.android.material.textfield.MaterialAutoCompleteTextView
             android:id="@+id/template_details_account_name"
-            style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
+            style="@style/MoLeMaterialAutoCompleteTextViewStyle"
+            android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:hint="@string/template_details_account_name_label"
             android:selectAllOnFocus="true"
             />
     </com.google.android.material.textfield.TextInputLayout>
+
     <TextView
         android:id="@+id/template_details_negate_amount_label"
         android:layout_width="0dp"
         app:layout_constraintTop_toTopOf="@id/template_details_negate_amount_label"
         />
 
+    <TextView
+        android:id="@+id/template_account_currency_source_label"
+        android:layout_width="0dp"
+        android:layout_height="match_parent"
+        android:layout_marginTop="@dimen/text_margin"
+        android:text="@string/account_currency_source_label"
+        android:textAppearance="?attr/textAppearanceListItem"
+        app:layout_constraintBottom_toTopOf="@+id/template_details_account_currency_source"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toBottomOf="@id/negate_amount_switch"
+        />
+    <TextView
+        android:id="@+id/template_details_account_currency_source"
+        android:layout_width="0dp"
+        android:layout_height="wrap_content"
+        android:textAppearance="?attr/textAppearanceListItemSecondary"
+        app:layout_constraintBottom_toTopOf="@+id/template_details_account_currency"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toBottomOf="@id/template_account_currency_source_label"
+        />
+    <TextView
+        android:id="@+id/template_details_account_currency"
+        android:layout_width="0dp"
+        android:layout_height="wrap_content"
+        android:layout_marginVertical="@dimen/half_text_margin"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toBottomOf="@id/template_details_account_currency_source"
+        />
 </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file