]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/transaction_list_row.xml
a9e6c9b7ca578025f971540d04d76d770bc83381
[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:app="http://schemas.android.com/apk/res-auto"
23     xmlns:tools="http://schemas.android.com/tools"
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     <LinearLayout
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">
42
43         <TextView
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" />
52
53         <TextView
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" />
59     </LinearLayout>
60
61     <LinearLayout
62         android:id="@+id/transaction_row_header_border"
63         android:layout_width="match_parent"
64         android:layout_height="wrap_content"
65         android:background="@drawable/dashed_border_1dp"
66         android:minHeight="2dp"
67         android:orientation="horizontal"
68         app:layout_constraintEnd_toEndOf="parent"
69         app:layout_constraintStart_toStartOf="parent"
70         app:layout_constraintTop_toBottomOf="@+id/transaction_row_head" />
71
72     <LinearLayout
73         android:id="@+id/transaction_row_acc_amounts"
74         android:layout_width="match_parent"
75         android:layout_height="wrap_content"
76         android:layout_weight="5"
77         android:orientation="vertical"
78         app:layout_constraintEnd_toEndOf="parent"
79         app:layout_constraintStart_toStartOf="parent"
80         app:layout_constraintTop_toBottomOf="@+id/transaction_row_header_border">
81
82         <LinearLayout
83             android:layout_width="match_parent"
84             android:layout_height="wrap_content"
85             android:gravity="center_vertical"
86             android:orientation="horizontal"
87             android:paddingStart="8dp"
88             android:paddingEnd="0dp">
89
90             <TextView
91                 android:layout_width="0dp"
92                 android:layout_height="wrap_content"
93                 android:layout_weight="5"
94                 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."
95                 android:textAlignment="viewStart"
96                 tools:ignore="HardcodedText" />
97
98             <TextView
99                 android:layout_width="wrap_content"
100                 android:layout_height="wrap_content"
101                 android:layout_marginEnd="0dp"
102                 android:minWidth="60dp"
103                 android:text="123,45\n-14 678,90"
104                 android:textAlignment="viewEnd"
105                 tools:ignore="HardcodedText" />
106         </LinearLayout>
107
108         <LinearLayout
109             android:layout_width="match_parent"
110             android:layout_height="wrap_content"
111             android:gravity="center_vertical"
112             android:orientation="horizontal"
113             android:paddingStart="8dp"
114             android:paddingEnd="0dp">
115
116             <TextView
117                 android:layout_width="0dp"
118                 android:layout_height="wrap_content"
119                 android:layout_weight="5"
120                 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."
121                 android:textAlignment="viewStart"
122                 tools:ignore="HardcodedText" />
123
124             <TextView
125                 android:layout_width="wrap_content"
126                 android:layout_height="wrap_content"
127                 android:layout_marginEnd="0dp"
128                 android:minWidth="60dp"
129                 android:text="123,45\n-14 678,90"
130                 android:textAlignment="viewEnd"
131                 tools:ignore="HardcodedText" />
132         </LinearLayout>
133     </LinearLayout>
134 </android.support.constraint.ConstraintLayout>