]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/profile_list_content.xml
profile color control
[mobile-ledger.git] / app / src / main / res / layout / profile_list_content.xml
index 77d939b245139bc00e1d49ef09538563ae17b149..f5b26d0c337dcd3522e9522773edacef3e54d668 100644 (file)
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:layout_gravity="center_horizontal"
-    android:foregroundGravity="center_vertical"
-    android:paddingVertical="@dimen/nav_header_vertical_spacing">
+    android:foregroundGravity="center_vertical">
+
+    <TextView
+        android:id="@+id/colorTag"
+        android:layout_width="@dimen/activity_horizontal_margin"
+        android:layout_height="0dp"
+        android:background="?colorPrimary"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toTopOf="parent" />
 
     <TextView
         android:id="@+id/profile_list_edit_button"
         android:layout_width="0dp"
         android:layout_height="wrap_content"
         android:layout_marginStart="16dp"
+        android:layout_marginTop="@dimen/nav_header_vertical_spacing"
         android:layout_marginEnd="16dp"
         android:text="Profile name"
         app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"
         app:layout_constraintStart_toEndOf="@id/profile_list_radio"
-        app:layout_constraintTop_toTopOf="parent" />
+        app:layout_constraintTop_toTopOf="parent"
+        tools:ignore="HardcodedText" />
 
     <TextView
         android:id="@+id/subtitle"
@@ -68,6 +78,7 @@
         android:layout_height="wrap_content"
         android:layout_marginStart="16dp"
         android:layout_marginEnd="16dp"
+        android:layout_marginBottom="@dimen/nav_header_vertical_spacing"
         android:text="Sub-heading"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toStartOf="@id/profile_list_edit_button"