]> git.ktnx.net Git - mobile-ledger.git/blob - 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
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             <LinearLayout
50                 android:layout_width="match_parent"
51                 android:layout_height="wrap_content"
52                 android:gravity="center_vertical"
53                 android:orientation="horizontal">
54
55                 <TextView
56                     android:id="@+id/textView"
57                     style="@style/account_summary_account_name"
58                     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." />
59
60                 <TextView
61                     android:id="@+id/textView2"
62                     style="@style/account_summary_amounts"
63                     android:text="123,45\n678,90" />
64             </LinearLayout>
65
66             <LinearLayout
67                 android:layout_width="match_parent"
68                 android:layout_height="match_parent"
69                 android:gravity="center_vertical"
70                 android:orientation="horizontal">
71
72                 <TextView
73                     android:id="@+id/textView3"
74                     style="@style/account_summary_account_name"
75                     android:text="TextView" />
76
77                 <TextView
78                     android:id="@+id/textView4"
79                     style="@style/account_summary_amounts"
80                     android:text="123,45\n678,90" />
81
82             </LinearLayout>
83
84         </LinearLayout>
85     </ScrollView>
86
87 </android.support.constraint.ConstraintLayout>