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.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
22 xmlns:tools="http://schemas.android.com/tools"
23 xmlns:app="http://schemas.android.com/apk/res-auto"
24 android:id="@+id/transaction_row"
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
27 android:gravity="center_vertical"
28 android:minHeight="36dp"
29 android:orientation="horizontal"
30 android:paddingStart="8dp"
31 android:paddingEnd="8dp">
33 <!--android:button="@drawable/checkbox_star_black"-->
36 android:id="@+id/transaction_row_head"
37 android:layout_width="match_parent"
38 android:layout_height="wrap_content"
39 android:orientation="horizontal"
40 app:layout_constraintEnd_toEndOf="parent"
41 app:layout_constraintStart_toStartOf="parent">
44 android:id="@+id/transaction_row_description"
45 style="@style/account_summary_account_name"
46 android:layout_width="0dp"
47 android:layout_height="wrap_content"
48 android:layout_weight="5"
49 android:text="Sample description goes here."
50 android:textStyle="bold"
51 tools:ignore="HardcodedText" />
54 android:id="@+id/transaction_row_date"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_marginEnd="0dp"
58 app:layout_constraintEnd_toEndOf="parent" />
62 android:id="@+id/transaction_row_acc_amounts"
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
65 android:layout_marginStart="8dp"
66 android:layout_weight="5"
67 android:orientation="vertical"
68 app:layout_constraintTop_toBottomOf="@id/transaction_row_description">
71 android:id="@+id/account_row_account_row"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:gravity="center_vertical"
75 android:orientation="horizontal"
76 android:paddingStart="8dp"
77 android:paddingEnd="8dp">
80 android:id="@+id/account_row_acc_name"
81 style="@style/account_summary_account_name"
82 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."
83 tools:ignore="HardcodedText" />
86 android:id="@+id/account_row_acc_amounts"
87 style="@style/account_summary_amounts"
88 android:text="123,45\n678,90"
89 tools:ignore="HardcodedText" />
92 </android.support.constraint.ConstraintLayout>