]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/transaction_list_row.xml
border under transaction header, other improvements. much better now
[mobile-ledger.git] / app / src / main / res / layout / transaction_list_row.xml
index 692e554b90772ed14b6b11717428610fc34dd670..fb5d44ed31272fbb74335a6612464976e0b709bd 100644 (file)
             app:layout_constraintEnd_toEndOf="parent" />
     </LinearLayout>
 
             app:layout_constraintEnd_toEndOf="parent" />
     </LinearLayout>
 
+    <LinearLayout
+        android:id="@+id/transaction_row_header_border"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:background="@drawable/dashed_border_1dp"
+        android:minHeight="2dp"
+        android:orientation="horizontal"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toBottomOf="@+id/transaction_row_head"></LinearLayout>
+
     <LinearLayout
         android:id="@+id/transaction_row_acc_amounts"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
     <LinearLayout
         android:id="@+id/transaction_row_acc_amounts"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_marginStart="8dp"
         android:layout_weight="5"
         android:orientation="vertical"
         android:layout_weight="5"
         android:orientation="vertical"
-        app:layout_constraintTop_toBottomOf="@id/transaction_row_description">
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toBottomOf="@+id/transaction_row_header_border">
 
         <LinearLayout
             android:id="@+id/account_row_account_row"
 
         <LinearLayout
             android:id="@+id/account_row_account_row"
             android:gravity="center_vertical"
             android:orientation="horizontal"
             android:paddingStart="8dp"
             android:gravity="center_vertical"
             android:orientation="horizontal"
             android:paddingStart="8dp"
-            android:paddingEnd="8dp">
+            android:paddingEnd="0dp">
 
             <TextView
                 android:id="@+id/account_row_acc_name"
 
             <TextView
                 android:id="@+id/account_row_acc_name"
-                style="@style/account_summary_account_name"
+                android:layout_width="0dp"
+                android:layout_height="wrap_content"
+                android:layout_weight="5"
                 android:text="Account name, a really long one. A very very very long one. It may even spawn on more than two lines -- three, four or more."
                 android:text="Account name, a really long one. A very very very long one. It may even spawn on more than two lines -- three, four or more."
+                android:textAlignment="viewStart"
                 tools:ignore="HardcodedText" />
 
             <TextView
                 android:id="@+id/account_row_acc_amounts"
                 tools:ignore="HardcodedText" />
 
             <TextView
                 android:id="@+id/account_row_acc_amounts"
-                style="@style/account_summary_amounts"
-                android:text="123,45\n678,90"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_marginEnd="0dp"
+                android:minWidth="60dp"
+                android:text="123,45\n-14 678,90"
+                android:textAlignment="viewEnd"
                 tools:ignore="HardcodedText" />
         </LinearLayout>
     </LinearLayout>
                 tools:ignore="HardcodedText" />
         </LinearLayout>
     </LinearLayout>