accounts summary: pad the row, not the table
[mobile-ledger.git] / app / src / main / res / layout / content_account_summary.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     xmlns:app="http://schemas.android.com/apk/res-auto"
4     xmlns:tools="http://schemas.android.com/tools"
5     android:id="@+id/content_account_summary_layout"
6     android:layout_width="match_parent"
7     android:layout_height="match_parent"
8     app:layout_behavior="@string/appbar_scrolling_view_behavior"
9     tools:context=".AccountSummary"
10     tools:showIn="@layout/app_bar_account_summary">
11
12     <TextView
13         android:id="@+id/textProgress"
14         android:layout_width="wrap_content"
15         android:layout_height="wrap_content"
16         android:text="TextView"
17         android:visibility="gone"
18         app:layout_constraintBottom_toBottomOf="parent"
19         app:layout_constraintEnd_toEndOf="parent"
20         app:layout_constraintStart_toStartOf="parent"
21         tools:ignore="HardcodedText" />
22
23     <ProgressBar
24         android:id="@+id/progressBar"
25         style="?android:attr/progressBarStyle"
26         android:layout_width="wrap_content"
27         android:layout_height="wrap_content"
28         android:layout_marginStart="8dp"
29         android:layout_marginEnd="8dp"
30         android:layout_marginBottom="16dp"
31         android:visibility="gone"
32         app:layout_constraintBottom_toTopOf="@+id/textProgress"
33         app:layout_constraintEnd_toEndOf="parent"
34         app:layout_constraintStart_toStartOf="parent" />
35
36     <ScrollView
37         android:id="@+id/account_root_scroller"
38         android:layout_width="match_parent"
39         android:layout_height="match_parent"
40         app:layout_constraintBottom_toTopOf="@+id/textProgress"
41         app:layout_constraintTop_toTopOf="parent">
42
43         <LinearLayout
44             android:id="@+id/account_root"
45             android:layout_width="match_parent"
46             android:layout_height="wrap_content"
47             android:orientation="vertical">
48
49             <TableLayout style="@style/account_summary_account_entry_table">
50
51                 <TableRow
52                     android:layout_width="match_parent"
53                     android:layout_height="match_parent"
54                     android:background="@color/table_row_even_bg"
55                     android:paddingStart="@dimen/activity_horizontal_margin"
56                     android:paddingEnd="@dimen/activity_horizontal_margin">
57
58                     <TextView
59                         android:id="@+id/textView"
60                         style="@style/account_summary_account_name"
61                         android:text="TextView" />
62
63                     <TextView
64                         android:id="@+id/textView2"
65                         style="@style/account_summary_amounts"
66                         android:text="123.45" />
67                 </TableRow>
68
69             </TableLayout>
70         </LinearLayout>
71     </ScrollView>
72
73 </android.support.constraint.ConstraintLayout>