]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/transaction_list_row.xml
a31faad07c48b3b0f86f72e95d7329703585a247
[mobile-ledger.git] / app / src / main / res / layout / transaction_list_row.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3
4 <!--
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.
11   ~
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.
16   ~
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/>.
19   -->
20
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">
32
33     <!--android:button="@drawable/checkbox_star_black"-->
34
35     <TextView
36         android:id="@+id/transaction_row_description"
37         style="@style/account_summary_account_name"
38         android:layout_width="0dp"
39         android:layout_height="wrap_content"
40         android:layout_weight="5"
41         android:text="Sample description goes here."
42         tools:ignore="HardcodedText" />
43
44     <TableLayout
45         android:id="@+id/transaction_row_acc_amounts"
46         android:layout_width="0dp"
47         android:layout_height="wrap_content"
48         android:layout_marginStart="8dp"
49         android:layout_weight="5"
50         app:layout_constraintRight_toRightOf="parent"
51         app:layout_constraintStart_toEndOf="@id/transaction_row_description">
52
53         <TableRow>
54
55             <TextView
56                 style="@style/account_summary_amounts"
57                 android:text="Sample account name"
58                 tools:ignore="HardcodedText" />
59
60             <TextView
61                 style="@style/account_summary_amounts"
62                 android:text="123,45\n678,90"
63                 tools:ignore="HardcodedText" />
64         </TableRow>
65
66         <TableRow>
67
68             <TextView
69                 style="@style/account_summary_amounts"
70                 android:text="Sample account name"
71                 tools:ignore="HardcodedText" />
72
73             <TextView
74                 style="@style/account_summary_amounts"
75                 android:text="123,45\n678,90"
76                 tools:ignore="HardcodedText" />
77         </TableRow>
78     </TableLayout>
79 </android.support.constraint.ConstraintLayout>