]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/profile_detail.xml
handle preferred accounts filter setting in the profile detail UI
[mobile-ledger.git] / app / src / main / res / layout / profile_detail.xml
index 0538f3f55600031323fcec837a94f227e1128d7b..e7b9c6c8c6432f8b20c707216bb9f546401033f0 100644 (file)
@@ -16,6 +16,7 @@
   -->
 
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:id="@+id/profile_detail"
     style="?android:attr/textAppearanceLarge"
@@ -23,7 +24,6 @@
     android:layout_height="match_parent"
     android:orientation="vertical"
     android:padding="16dp"
-    android:textIsSelectable="true"
     tools:context=".ui.profiles.ProfileDetailFragment">
 
     <com.google.android.material.textfield.TextInputLayout
@@ -61,6 +61,7 @@
     <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
+        android:animateLayoutChanges="true"
         android:orientation="vertical">
 
         <Switch
                     android:inputType="textPassword" />
 
             </com.google.android.material.textfield.TextInputLayout>
+
         </LinearLayout>
 
+        <com.google.android.material.textfield.TextInputLayout
+            android:id="@+id/preferred_accounts_accounts_filter_layout"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_marginBottom="16dp"
+            android:orientation="vertical">
+
+            <com.google.android.material.textfield.TextInputEditText
+                android:id="@+id/preferred_accounts_filter_filter"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:ems="10"
+                android:fontFamily="monospace"
+                android:hint="@string/pref_preferred_autocompletion_account_filter_hint"
+                android:inputType="text" />
+        </com.google.android.material.textfield.TextInputLayout>
+
         <LinearLayout
-            android:id="@+id/profileColorRow"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:orientation="horizontal">
 
             <TextView
                 android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_gravity="center_vertical"
-                android:layout_weight="2"
-                android:text="@string/color_label" />
-
-            <Spinner
-                android:id="@+id/colorSpinner"
-                android:layout_width="80dp"
-                android:layout_height="80dp"
-                android:layout_weight="2" />
+                android:layout_height="match_parent"
+                android:layout_weight="100"
+                android:gravity="center_vertical"
+                android:text="@string/profile_color_label" />
+
+            <ImageButton
+                android:id="@+id/btn_pick_ring_color"
+                android:layout_width="@dimen/thumb_row_height"
+                android:layout_height="@dimen/thumb_row_height"
+                android:layout_weight="1"
+                android:background="?colorPrimary"
+                android:src="@drawable/ic_palette_black_24dp"
+                android:tint="?drawer_background" />
 
         </LinearLayout>
 
-
     </LinearLayout>
 </LinearLayout>
\ No newline at end of file