1 <?xml version="1.0" encoding="utf-8"?>
4 ~ Copyright © 2020 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:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:measureAllChildren="false"
28 <com.google.android.material.card.MaterialCardView
29 android:id="@+id/transaction_card_view"
30 style="@style/Widget.MaterialComponents.CardView"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:layout_margin="8dp"
34 android:visibility="visible"
35 app:cardBackgroundColor="?table_row_light_bg"
36 app:cardUseCompatPadding="false"
37 app:cardCornerRadius="0dp"
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"
50 android:id="@+id/transaction_row_head"
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:orientation="vertical"
54 app:layout_constraintEnd_toEndOf="parent"
55 app:layout_constraintStart_toStartOf="parent"
56 app:layout_constraintTop_toTopOf="parent"
60 android:id="@+id/transaction_row_description"
61 android:layout_width="match_parent"
62 android:layout_height="wrap_content"
64 android:textColor="?textColor"
65 android:textAppearance="@android:style/TextAppearance.Material.Medium"
66 android:textStyle="bold"
67 tools:ignore="HardcodedText"
70 android:id="@+id/transaction_comment"
71 android:layout_width="match_parent"
72 android:layout_height="wrap_content"
73 android:layout_marginStart="0dp"
74 android:layout_marginTop="0dp"
75 android:text="Comment text"
76 android:textAppearance="@android:style/TextAppearance.Material.Small"
77 android:textColor="?commentColor"
78 tools:ignore="HardcodedText"
83 android:id="@+id/transaction_row_acc_amounts"
84 android:layout_width="match_parent"
85 android:layout_height="wrap_content"
86 android:layout_marginTop="8dp"
87 android:orientation="vertical"
88 app:layout_constraintEnd_toEndOf="parent"
89 app:layout_constraintStart_toStartOf="parent"
90 app:layout_constraintTop_toBottomOf="@+id/transaction_row_head"
93 <include layout="@layout/transaction_list_row_accounts_table_row" />
94 <include layout="@layout/transaction_list_row_accounts_table_row" />
98 </androidx.constraintlayout.widget.ConstraintLayout>
99 </com.google.android.material.card.MaterialCardView>
101 <androidx.constraintlayout.widget.ConstraintLayout
102 android:id="@+id/transaction_delimiter"
103 android:layout_width="match_parent"
104 android:layout_height="wrap_content"
105 android:layout_marginStart="8dp"
106 android:layout_marginTop="16dp"
107 android:layout_marginEnd="8dp"
111 android:id="@+id/transaction_delimiter_month"
112 android:layout_width="wrap_content"
113 android:layout_height="match_parent"
114 android:layout_marginHorizontal="4dp"
115 android:text="---------"
116 android:textColor="?colorPrimary"
117 android:textStyle="bold"
118 app:layout_constraintEnd_toEndOf="parent"
119 tools:ignore="HardcodedText"
123 android:id="@+id/transaction_delimiter_date"
124 android:layout_width="wrap_content"
125 android:layout_height="match_parent"
126 android:layout_marginHorizontal="4dp"
127 android:text="--.--.----"
128 android:textColor="?colorPrimary"
129 android:textStyle="bold"
130 app:layout_constraintStart_toStartOf="parent"
131 tools:ignore="HardcodedText"
135 android:id="@+id/transaction_delimiter_thick"
136 android:layout_width="0dp"
137 android:layout_height="1dp"
138 android:layout_marginHorizontal="16dp"
139 android:background="?colorPrimary"
140 app:layout_constraintBottom_toBottomOf="parent"
141 app:layout_constraintEnd_toStartOf="@id/transaction_delimiter_month"
142 app:layout_constraintStart_toEndOf="@id/transaction_delimiter_date"
143 app:layout_constraintTop_toTopOf="parent"
146 </androidx.constraintlayout.widget.ConstraintLayout>