]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/content_account_summary.xml
rework account symmary activity using linear layouts
[mobile-ledger.git] / app / src / main / res / layout / content_account_summary.xml
index 30a1d60f23b0b0c5d532c7ae040b9a9adbd065aa..c30125ee74c0dd9819ed49755348cbfc000e2357 100644 (file)
             android:layout_height="wrap_content"
             android:orientation="vertical">
 
-            <TableLayout style="@style/account_summary_account_entry_table">
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:gravity="center_vertical"
+                android:orientation="horizontal">
 
-                <TableRow
-                    android:layout_width="match_parent"
-                    android:layout_height="match_parent"
-                    android:background="@color/table_row_even_bg"
-                    android:gravity="center"
-                    android:paddingStart="@dimen/activity_horizontal_margin"
-                    android:paddingEnd="@dimen/activity_horizontal_margin">
+                <TextView
+                    android:id="@+id/textView"
+                    style="@style/account_summary_account_name"
+                    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." />
 
-                    <TextView
-                        android:id="@+id/textView"
-                        style="@style/account_summary_account_name"
-                        android:text="TextView" />
+                <TextView
+                    android:id="@+id/textView2"
+                    style="@style/account_summary_amounts"
+                    android:text="123,45\n678,90" />
+            </LinearLayout>
 
-                    <TextView
-                        android:id="@+id/textView2"
-                        style="@style/account_summary_amounts"
-                        android:text="123,45\n678,90" />
-                </TableRow>
+            <LinearLayout
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:gravity="center_vertical"
+                android:orientation="horizontal">
+
+                <TextView
+                    android:id="@+id/textView3"
+                    style="@style/account_summary_account_name"
+                    android:text="TextView" />
+
+                <TextView
+                    android:id="@+id/textView4"
+                    style="@style/account_summary_amounts"
+                    android:text="123,45\n678,90" />
+
+            </LinearLayout>
 
-            </TableLayout>
         </LinearLayout>
     </ScrollView>