]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/transaction_list_row.xml
256ebb24ed2a85599ce332fe1ee7130160e55484
[mobile-ledger.git] / app / src / main / res / layout / transaction_list_row.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   ~ Copyright © 2019 Damyan Ivanov.
5   ~ This file is part of Mobile-Ledger.
6   ~ Mobile-Ledger is free software: you can distribute it and/or modify it
7   ~ under the term of the GNU General Public License as published by
8   ~ the Free Software Foundation, either version 3 of the License, or
9   ~ (at your opinion), any later version.
10   ~
11   ~ Mobile-Ledger is distributed in the hope that it will be useful,
12   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
13   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14   ~ GNU General Public License terms for details.
15   ~
16   ~ You should have received a copy of the GNU General Public License
17   ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
18   -->
19
20 <android.support.v7.widget.ContentFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
21     xmlns:app="http://schemas.android.com/apk/res-auto"
22     xmlns:tools="http://schemas.android.com/tools"
23     android:layout_width="match_parent"
24     android:layout_height="wrap_content">
25
26     <android.support.v7.widget.CardView
27         android:id="@+id/transaction_card_view"
28         android:layout_width="match_parent"
29         android:layout_height="wrap_content"
30         android:layout_margin="8dp"
31         android:visibility="gone"
32         app:cardCornerRadius="16dp"
33         app:cardElevation="4dp"
34         app:cardUseCompatPadding="false"
35         app:layout_constraintEnd_toEndOf="parent"
36         app:layout_constraintStart_toStartOf="parent"
37         app:layout_goneMarginBottom="8dp">
38
39         <android.support.constraint.ConstraintLayout
40             android:id="@+id/transaction_row"
41             android:layout_width="match_parent"
42             android:layout_height="wrap_content"
43             android:gravity="center_vertical"
44             android:minHeight="36dp"
45             android:orientation="horizontal"
46             android:padding="8dp">
47
48             <LinearLayout
49                 android:id="@+id/transaction_row_head"
50                 android:layout_width="match_parent"
51                 android:layout_height="wrap_content"
52                 android:orientation="horizontal"
53                 app:layout_constraintEnd_toEndOf="parent"
54                 app:layout_constraintStart_toStartOf="parent">
55
56                 <TextView
57                     android:id="@+id/transaction_row_description"
58                     style="@style/account_summary_account_name"
59                     android:layout_width="0dp"
60                     android:layout_height="wrap_content"
61                     android:layout_weight="5"
62                     android:text="---."
63                     android:textStyle="bold"
64                     tools:ignore="HardcodedText" />
65
66             </LinearLayout>
67
68             <LinearLayout
69                 android:id="@+id/transaction_row_header_border"
70                 android:layout_width="match_parent"
71                 android:layout_height="wrap_content"
72                 android:background="@drawable/dashed_border_1dp"
73                 android:minHeight="2dp"
74                 android:orientation="horizontal"
75                 app:layout_constraintEnd_toEndOf="parent"
76                 app:layout_constraintStart_toStartOf="parent"
77                 app:layout_constraintTop_toBottomOf="@+id/transaction_row_head" />
78
79             <LinearLayout
80                 android:id="@+id/transaction_row_acc_amounts"
81                 android:layout_width="match_parent"
82                 android:layout_height="wrap_content"
83                 android:layout_weight="5"
84                 android:orientation="vertical"
85                 app:layout_constraintEnd_toEndOf="parent"
86                 app:layout_constraintStart_toStartOf="parent"
87                 app:layout_constraintTop_toBottomOf="@+id/transaction_row_header_border">
88
89                 <LinearLayout
90                     android:layout_width="match_parent"
91                     android:layout_height="wrap_content"
92                     android:gravity="center_vertical"
93                     android:orientation="horizontal"
94                     android:paddingStart="8dp"
95                     android:paddingEnd="0dp">
96
97                     <TextView
98                         android:layout_width="0dp"
99                         android:layout_height="wrap_content"
100                         android:layout_weight="5"
101                         android:text="---"
102                         android:textAlignment="viewStart"
103                         tools:ignore="HardcodedText" />
104
105                     <TextView
106                         android:layout_width="wrap_content"
107                         android:layout_height="wrap_content"
108                         android:layout_marginEnd="0dp"
109                         android:minWidth="60dp"
110                         android:text="€ --,--"
111                         android:textAlignment="viewEnd"
112                         tools:ignore="HardcodedText" />
113                 </LinearLayout>
114
115                 <LinearLayout
116                     android:layout_width="match_parent"
117                     android:layout_height="wrap_content"
118                     android:gravity="center_vertical"
119                     android:orientation="horizontal"
120                     android:paddingStart="8dp"
121                     android:paddingEnd="0dp">
122
123                     <TextView
124                         android:layout_width="0dp"
125                         android:layout_height="wrap_content"
126                         android:layout_weight="5"
127                         android:text="---"
128                         android:textAlignment="viewStart"
129                         tools:ignore="HardcodedText" />
130
131                     <TextView
132                         android:layout_width="wrap_content"
133                         android:layout_height="wrap_content"
134                         android:layout_marginEnd="0dp"
135                         android:minWidth="60dp"
136                         android:text="---,--"
137                         android:textAlignment="viewEnd"
138                         tools:ignore="HardcodedText" />
139                 </LinearLayout>
140             </LinearLayout>
141
142         </android.support.constraint.ConstraintLayout>
143     </android.support.v7.widget.CardView>
144
145     <android.support.constraint.ConstraintLayout
146         android:id="@+id/transaction_delimiter"
147         android:layout_width="match_parent"
148         android:layout_height="wrap_content"
149         android:layout_marginStart="8dp"
150         android:layout_marginTop="16dp"
151         android:layout_marginEnd="8dp"
152         android:foregroundGravity="center_vertical"
153         android:orientation="horizontal">
154
155         <TextView
156             android:id="@+id/transaction_delimiter_month"
157             android:layout_width="wrap_content"
158             android:layout_height="match_parent"
159             android:text="---------"
160             android:textStyle="bold"
161             app:layout_constraintStart_toStartOf="parent"
162             tools:ignore="HardcodedText" />
163
164         <TextView
165             android:id="@+id/transaction_delimiter_date"
166             android:layout_width="wrap_content"
167             android:layout_height="match_parent"
168             android:text="--.--.----"
169             android:textStyle="bold"
170             app:layout_constraintEnd_toEndOf="parent"
171             tools:ignore="HardcodedText" />
172
173         <View
174             android:id="@+id/transaction_delimiter_line"
175             android:layout_width="0dp"
176             android:layout_height="0dp"
177             android:layout_marginStart="8dp"
178             android:layout_marginEnd="8dp"
179             android:background="@drawable/dashed_border_1dp"
180             app:layout_constraintBottom_toBottomOf="parent"
181             app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_date"
182             app:layout_constraintStart_toEndOf="@id/transaction_delimiter_month"
183             app:layout_constraintTop_toTopOf="parent" />
184
185     </android.support.constraint.ConstraintLayout>
186 </android.support.v7.widget.ContentFrameLayout>