]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/transaction_list_row_accounts_table_row.xml
hint account name wrapping after the colon to help long accounts
[mobile-ledger.git] / app / src / main / res / layout / transaction_list_row_accounts_table_row.xml
index 765b818946fd2f18ce07a2ac9e5d0f01cbb2a764..ceea9acfe2845f048561f72c3e5148be28e8a95a 100644 (file)
     android:layout_height="wrap_content"
     android:gravity="center_vertical"
     android:orientation="horizontal"
-    android:paddingStart="8dp"
-    android:paddingEnd="0dp">
+    >
 
     <LinearLayout
         android:layout_width="0dp"
         android:layout_height="wrap_content"
         android:layout_weight="5"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        >
+        <TextView
+            android:id="@+id/dummy_text"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:visibility="gone"
+            />
 
         <TextView
             android:id="@+id/transaction_list_acc_row_acc_name"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:text="another acc name"
+            android:breakStrategy="high_quality"
             android:textAlignment="viewStart"
             android:textAppearance="@android:style/TextAppearance.Material.Small"
-            android:textColor="?textColor"
-            android:textStyle="normal"
             tools:ignore="HardcodedText"
+            android:hyphenationFrequency="full"
+            android:text="one:very:long:account:name:that:needs:to:wrap:to:more:tnan:one:line:two:would:be:nice:but:the:more:the:better:and:the:better:"
             />
 
         <TextView
@@ -50,8 +56,7 @@
             android:layout_marginTop="-4dp"
             android:text="account comment"
             android:textAlignment="viewStart"
-            android:textAppearance="@android:style/TextAppearance.Material.Small"
-            android:textColor="?commentColor"
+            style="@style/transaction_list_comment"
             tools:ignore="HardcodedText,RtlSymmetry"
             />
     </LinearLayout>
@@ -65,7 +70,6 @@
         android:minWidth="60dp"
         android:text="---,--"
         android:textAlignment="viewEnd"
-        android:textColor="?textColor"
         android:textAppearance="@android:style/TextAppearance.Material.Small"
         tools:ignore="HardcodedText" />
 </LinearLayout>