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">
37 <androidx.constraintlayout.widget.ConstraintLayout
38 android:id="@+id/transaction_row"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:gravity="center_vertical"
42 android:minHeight="36dp"
43 android:orientation="horizontal"
44 android:padding="8dp">
47 android:id="@+id/transaction_row_head"
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
50 android:orientation="vertical"
51 app:layout_constraintEnd_toEndOf="parent"
52 app:layout_constraintStart_toStartOf="parent"
53 app:layout_constraintTop_toTopOf="parent">
56 android:id="@+id/transaction_row_description"
57 style="@style/account_summary_account_name"
58 android:layout_width="match_parent"
59 android:layout_height="wrap_content"
61 android:textAppearance="@android:style/TextAppearance.Material.Medium"
62 tools:ignore="HardcodedText"
65 android:id="@+id/transaction_comment"
66 android:layout_width="match_parent"
67 android:layout_height="wrap_content"
68 android:layout_marginStart="8dp"
69 android:text="Comment text"
70 android:textStyle="italic"
71 tools:ignore="HardcodedText"
76 android:id="@+id/transaction_row_header_border"
77 android:layout_width="match_parent"
78 android:layout_height="2dp"
80 android:background="@drawable/dashed_border_1dp"
82 app:layout_constraintEnd_toEndOf="parent"
83 app:layout_constraintStart_toStartOf="parent"
84 app:layout_constraintTop_toBottomOf="@+id/transaction_row_head" />
87 android:id="@+id/transaction_row_acc_amounts"
88 android:layout_width="match_parent"
89 android:layout_height="wrap_content"
90 android:layout_weight="5"
91 android:orientation="vertical"
92 app:layout_constraintEnd_toEndOf="parent"
93 app:layout_constraintStart_toStartOf="parent"
94 app:layout_constraintTop_toBottomOf="@+id/transaction_row_header_border">
96 <include layout="@layout/transaction_list_row_accounts_table_row"/>
97 <include layout="@layout/transaction_list_row_accounts_table_row"/>
101 </androidx.constraintlayout.widget.ConstraintLayout>
102 </androidx.cardview.widget.CardView>
104 <androidx.constraintlayout.widget.ConstraintLayout
105 android:id="@+id/transaction_delimiter"
106 android:layout_width="match_parent"
107 android:layout_height="wrap_content"
108 android:layout_marginStart="8dp"
109 android:layout_marginTop="16dp"
110 android:layout_marginEnd="8dp">
113 android:id="@+id/transaction_delimiter_month"
114 android:layout_width="wrap_content"
115 android:layout_height="match_parent"
116 android:background="?colorPrimary"
117 android:paddingStart="4dp"
118 android:paddingEnd="4dp"
119 android:text="---------"
120 android:textColor="?android:attr/colorBackground"
121 android:textStyle="bold"
122 app:layout_constraintStart_toStartOf="parent"
123 tools:ignore="HardcodedText" />
126 android:id="@+id/transaction_delimiter_date"
127 android:layout_width="wrap_content"
128 android:layout_height="match_parent"
129 android:background="?colorPrimary"
130 android:paddingStart="4dp"
131 android:paddingEnd="4dp"
132 android:text="--.--.----"
133 android:textColor="?android:attr/colorBackground"
134 android:textStyle="bold"
135 app:layout_constraintEnd_toEndOf="parent"
136 tools:ignore="HardcodedText" />
139 android:id="@+id/transaction_delimiter_line"
140 android:layout_width="0dp"
141 android:layout_height="16dp"
142 android:layout_marginStart="8dp"
143 android:layout_marginEnd="8dp"
145 android:background="@drawable/dashed_border_1dp"
146 app:layout_constraintBottom_toBottomOf="parent"
147 app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_date"
148 app:layout_constraintStart_toEndOf="@id/transaction_delimiter_month"
149 app:layout_constraintTop_toTopOf="parent" />
152 android:id="@+id/transaction_delimiter_thick"
153 android:layout_width="0dp"
154 android:layout_height="0dp"
155 android:background="?colorPrimary"
156 app:layout_constraintBottom_toBottomOf="parent"
157 app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_date"
158 app:layout_constraintStart_toEndOf="@id/transaction_delimiter_month"
159 app:layout_constraintTop_toTopOf="parent" />
161 </androidx.constraintlayout.widget.ConstraintLayout>