1 <?xml version="1.0" encoding="utf-8"?>
5 ~ Copyright © 2018 Damyan Ivanov.
6 ~ This file is part of Mobile-Ledger.
7 ~ Mobile-Ledger is free software: you can distribute it and/or modify it
8 ~ under the term of the GNU General Public License as published by
9 ~ the Free Software Foundation, either version 3 of the License, or
10 ~ (at your opinion), any later version.
12 ~ Mobile-Ledger is distributed in the hope that it will be useful,
13 ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ~ GNU General Public License terms for details.
17 ~ You should have received a copy of the GNU General Public License
18 ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
21 <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
22 xmlns:app="http://schemas.android.com/apk/res-auto"
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:layout_margin="8dp"
26 app:cardCornerRadius="16dp"
27 app:cardElevation="4dp"
28 app:cardUseCompatPadding="false"
29 app:layout_constraintEnd_toEndOf="parent"
30 app:layout_constraintStart_toStartOf="parent"
31 app:layout_goneMarginBottom="8dp">
33 <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
34 xmlns:app="http://schemas.android.com/apk/res-auto"
35 xmlns:tools="http://schemas.android.com/tools"
36 android:id="@+id/transaction_row"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:gravity="center_vertical"
40 android:minHeight="36dp"
41 android:orientation="horizontal"
42 android:padding="8dp">
45 android:id="@+id/transaction_row_head"
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:orientation="horizontal"
49 app:layout_constraintEnd_toEndOf="parent"
50 app:layout_constraintStart_toStartOf="parent">
53 android:id="@+id/transaction_row_description"
54 style="@style/account_summary_account_name"
55 android:layout_width="0dp"
56 android:layout_height="wrap_content"
57 android:layout_weight="5"
58 android:text="Sample description goes here."
59 android:textStyle="bold"
60 tools:ignore="HardcodedText" />
63 android:id="@+id/transaction_row_date"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_marginEnd="0dp"
67 app:layout_constraintEnd_toEndOf="parent" />
71 android:id="@+id/transaction_row_header_border"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:background="@drawable/dashed_border_1dp"
75 android:minHeight="2dp"
76 android:orientation="horizontal"
77 app:layout_constraintEnd_toEndOf="parent"
78 app:layout_constraintStart_toStartOf="parent"
79 app:layout_constraintTop_toBottomOf="@+id/transaction_row_head" />
82 android:id="@+id/transaction_row_acc_amounts"
83 android:layout_width="match_parent"
84 android:layout_height="wrap_content"
85 android:layout_weight="5"
86 android:orientation="vertical"
87 app:layout_constraintEnd_toEndOf="parent"
88 app:layout_constraintStart_toStartOf="parent"
89 app:layout_constraintTop_toBottomOf="@+id/transaction_row_header_border">
92 android:layout_width="match_parent"
93 android:layout_height="wrap_content"
94 android:gravity="center_vertical"
95 android:orientation="horizontal"
96 android:paddingStart="8dp"
97 android:paddingEnd="0dp">
100 android:layout_width="0dp"
101 android:layout_height="wrap_content"
102 android:layout_weight="5"
103 android:text="Account name, a really long one. A very very very long one. It may even spawn on more than two lines -- three, four or more."
104 android:textAlignment="viewStart"
105 tools:ignore="HardcodedText" />
108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"
110 android:layout_marginEnd="0dp"
111 android:minWidth="60dp"
112 android:text="€ 123,45"
113 android:textAlignment="viewEnd"
114 tools:ignore="HardcodedText" />
118 android:layout_width="match_parent"
119 android:layout_height="wrap_content"
120 android:gravity="center_vertical"
121 android:orientation="horizontal"
122 android:paddingStart="8dp"
123 android:paddingEnd="0dp">
126 android:layout_width="0dp"
127 android:layout_height="wrap_content"
128 android:layout_weight="5"
129 android:text="Account name, a really long one. A very very very long one. It may even spawn on more than two lines -- three, four or more."
130 android:textAlignment="viewStart"
131 tools:ignore="HardcodedText" />
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"
136 android:layout_marginEnd="0dp"
137 android:minWidth="60dp"
138 android:text="-14 678,90"
139 android:textAlignment="viewEnd"
140 tools:ignore="HardcodedText" />
144 </android.support.constraint.ConstraintLayout>
145 </android.support.v7.widget.CardView>