update accounts table visual upon refreshilg the account data from the backend
[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_latest_transactions">
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         android:paddingStart="@dimen/activity_horizontal_margin"
41         android:paddingEnd="@dimen/activity_horizontal_margin"
42         app:layout_constraintBottom_toTopOf="@+id/textProgress"
43         app:layout_constraintTop_toTopOf="parent">
44
45         <LinearLayout
46             android:id="@+id/account_root"
47             android:layout_width="match_parent"
48             android:layout_height="wrap_content"
49             android:orientation="vertical">
50
51             <TableLayout style="@style/account_summary_account_entry_table">
52
53                 <TableRow
54                     android:layout_width="match_parent"
55                     android:layout_height="match_parent"
56                     android:background="@color/table_row_even_bg">
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>