1 <?xml version="1.0" encoding="utf-8"?>
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.
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.
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/>.
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">
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">
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">
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">
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"
63 android:textStyle="bold"
64 tools:ignore="HardcodedText" />
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" />
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">
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">
98 android:layout_width="0dp"
99 android:layout_height="wrap_content"
100 android:layout_weight="5"
102 android:textAlignment="viewStart"
103 tools:ignore="HardcodedText" />
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" />
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">
124 android:layout_width="0dp"
125 android:layout_height="wrap_content"
126 android:layout_weight="5"
128 android:textAlignment="viewStart"
129 tools:ignore="HardcodedText" />
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" />
142 </android.support.constraint.ConstraintLayout>
143 </android.support.v7.widget.CardView>
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">
156 android:id="@+id/transaction_delimiter_month"
157 android:layout_width="wrap_content"
158 android:layout_height="match_parent"
159 android:text="---------"
160 android:textColor="@color/header_border"
161 android:textStyle="bold"
162 app:layout_constraintStart_toStartOf="parent"
163 tools:ignore="HardcodedText" />
166 android:id="@+id/transaction_delimiter_date"
167 android:layout_width="wrap_content"
168 android:layout_height="match_parent"
169 android:text="--.--.----"
170 android:textColor="@color/header_border"
171 android:textStyle="bold"
172 app:layout_constraintEnd_toEndOf="parent"
173 tools:ignore="HardcodedText" />
176 android:id="@+id/transaction_delimiter_line"
177 android:layout_width="0dp"
178 android:layout_height="0dp"
179 android:layout_marginStart="8dp"
180 android:layout_marginEnd="8dp"
181 android:background="@drawable/dashed_border_1dp"
182 app:layout_constraintBottom_toBottomOf="parent"
183 app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_date"
184 app:layout_constraintStart_toEndOf="@id/transaction_delimiter_month"
185 app:layout_constraintTop_toTopOf="parent" />
187 </android.support.constraint.ConstraintLayout>
188 </android.support.v7.widget.ContentFrameLayout>