]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/profile_list_content.xml
wider touch area for rearranging profiles
[mobile-ledger.git] / app / src / main / res / layout / profile_list_content.xml
index f76c40c00d0b41457c51d57d2756999a87a35d0e..6f09955a468cb6b8b31f3d0494dc598bec9cf978 100644 (file)
     android:layout_gravity="center_horizontal"
     android:foregroundGravity="center_vertical">
 
-    <TextView
-        android:id="@+id/colorTag"
-        android:layout_width="16dp"
-        android:layout_height="0dp"
-        android:layout_marginStart="40dp"
-        android:layout_marginTop="4dp"
-        android:layout_marginBottom="4dp"
-        android:background="?colorPrimary"
-        app:layout_constraintBottom_toBottomOf="parent"
+    <LinearLayout
+        android:id="@+id/handle_and_tag"
+        android:layout_width="56dp"
+        android:layout_height="match_parent"
+        android:orientation="horizontal"
         app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toTopOf="parent" />
+        app:layout_constraintTop_toTopOf="parent">
+
+        <ImageView
+            android:id="@+id/profile_list_rearrange_handle"
+            android:layout_width="40dp"
+            android:layout_height="match_parent"
+            android:layout_margin="8dp"
+            android:layout_weight="9"
+            android:background="@drawable/ic_unfold_more_black_24dp"
+            android:contentDescription="@string/profile_list_rearrange_handle_label"
+            app:layout_constraintBottom_toBottomOf="parent"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent" />
+
+        <TextView
+            android:id="@+id/colorTag"
+            android:layout_width="16dp"
+            android:layout_height="match_parent"
+            android:layout_marginTop="6dp"
+            android:layout_marginBottom="6dp"
+            android:background="?colorPrimary" />
+    </LinearLayout>
 
     <TextView
         android:id="@+id/profile_list_edit_button"
         android:layout_weight="9"
         android:drawableStart="@drawable/ic_mode_edit_black_24dp"
         android:padding="8dp"
-        app:layout_constraintBottom_toBottomOf="parent"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintTop_toTopOf="parent"
-        android:visibility="invisible"/>
-
-    <ImageView
-        android:id="@+id/profile_list_rearrange_handle"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_marginStart="8dp"
-        android:layout_weight="9"
-        android:background="@drawable/ic_unfold_more_black_24dp"
-        android:contentDescription="@string/profile_list_rearrange_handle_label"
         android:visibility="gone"
         app:layout_constraintBottom_toBottomOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintTop_toTopOf="parent" />
 
     <TextView
@@ -77,7 +81,7 @@
         android:text="Profile name"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"
-        app:layout_constraintStart_toEndOf="@id/colorTag"
+        app:layout_constraintStart_toEndOf="@id/handle_and_tag"
         app:layout_constraintTop_toTopOf="parent"
         tools:ignore="HardcodedText" />