1 <?xml version="1.0" encoding="utf-8"?>
4 ~ Copyright © 2019 Damyan Ivanov.
5 ~ This file is part of MoLe.
6 ~ MoLe 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 ~ MoLe 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 MoLe. If not, see <https://www.gnu.org/licenses/>.
20 <FrameLayout 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:measureAllChildren="false"
24 android:layout_width="match_parent"
25 android:layout_height="wrap_content">
27 <androidx.cardview.widget.CardView
28 android:id="@+id/transaction_card_view"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:layout_margin="8dp"
32 android:visibility="visible"
33 app:cardCornerRadius="16dp"
34 app:cardElevation="4dp"
35 app:cardUseCompatPadding="false"
36 app:layout_constraintEnd_toEndOf="parent"
37 app:layout_constraintStart_toStartOf="parent"
38 app:layout_goneMarginBottom="8dp">
40 <androidx.constraintlayout.widget.ConstraintLayout
41 android:id="@+id/transaction_row"
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
44 android:gravity="center_vertical"
45 android:minHeight="36dp"
46 android:orientation="horizontal"
47 android:padding="8dp">
50 android:id="@+id/transaction_row_head"
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:orientation="horizontal"
54 app:layout_constraintEnd_toEndOf="parent"
55 app:layout_constraintStart_toStartOf="parent"
56 app:layout_constraintTop_toTopOf="parent">
59 android:id="@+id/transaction_row_description"
60 style="@style/account_summary_account_name"
61 android:layout_width="0dp"
62 android:layout_height="wrap_content"
63 android:layout_weight="5"
65 android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
66 tools:ignore="HardcodedText" />
71 android:id="@+id/transaction_row_header_border"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
75 android:background="@drawable/dashed_border_1dp"
76 android:minHeight="2dp"
77 android:orientation="horizontal"
78 app:layout_constraintEnd_toEndOf="parent"
79 app:layout_constraintStart_toStartOf="parent"
80 app:layout_constraintTop_toBottomOf="@+id/transaction_row_head" />
83 android:id="@+id/transaction_row_acc_amounts"
84 android:layout_width="match_parent"
85 android:layout_height="wrap_content"
86 android:layout_weight="5"
87 android:orientation="vertical"
88 app:layout_constraintEnd_toEndOf="parent"
89 app:layout_constraintStart_toStartOf="parent"
90 app:layout_constraintTop_toBottomOf="@+id/transaction_row_header_border">
92 <include layout="@layout/transaction_list_row_accounts_table_row"/>
93 <include layout="@layout/transaction_list_row_accounts_table_row"/>
97 </androidx.constraintlayout.widget.ConstraintLayout>
98 </androidx.cardview.widget.CardView>
100 <androidx.constraintlayout.widget.ConstraintLayout
101 android:id="@+id/transaction_delimiter"
102 android:layout_width="match_parent"
103 android:layout_height="wrap_content"
104 android:layout_marginStart="8dp"
105 android:layout_marginTop="16dp"
106 android:layout_marginEnd="8dp"
107 android:foregroundGravity="center_vertical"
108 android:orientation="horizontal">
111 android:id="@+id/transaction_delimiter_month"
112 android:layout_width="wrap_content"
113 android:layout_height="match_parent"
114 android:background="?colorPrimary"
115 android:paddingStart="4dp"
116 android:paddingEnd="4dp"
117 android:text="---------"
118 android:textColor="@android:color/white"
119 android:textStyle="bold"
120 app:layout_constraintStart_toStartOf="parent"
121 tools:ignore="HardcodedText" />
124 android:id="@+id/transaction_delimiter_date"
125 android:layout_width="wrap_content"
126 android:layout_height="match_parent"
127 android:background="?colorPrimary"
128 android:paddingStart="4dp"
129 android:paddingEnd="4dp"
130 android:text="--.--.----"
131 android:textColor="@android:color/white"
132 android:textStyle="bold"
133 app:layout_constraintEnd_toEndOf="parent"
134 tools:ignore="HardcodedText" />
137 android:id="@+id/transaction_delimiter_line"
138 android:layout_width="0dp"
139 android:layout_height="16dp"
140 android:layout_marginStart="8dp"
141 android:layout_marginEnd="8dp"
143 android:background="@drawable/dashed_border_1dp"
144 app:layout_constraintBottom_toBottomOf="parent"
145 app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_date"
146 app:layout_constraintStart_toEndOf="@id/transaction_delimiter_month"
147 app:layout_constraintTop_toTopOf="parent" />
150 android:id="@+id/transaction_delimiter_thick"
151 android:layout_width="0dp"
152 android:layout_height="0dp"
153 android:background="?colorPrimary"
154 app:layout_constraintBottom_toBottomOf="parent"
155 app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_date"
156 app:layout_constraintStart_toEndOf="@id/transaction_delimiter_month"
157 app:layout_constraintTop_toTopOf="parent" />
159 </androidx.constraintlayout.widget.ConstraintLayout>