]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/account_summary_row.xml
f962ada392da038f8a1854dff4765b9b82e3c5da
[mobile-ledger.git] / app / src / main / res / layout / account_summary_row.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3
4 <!--
5   ~ Copyright © 2019 Damyan Ivanov.
6   ~ This file is part of MoLe.
7   ~ MoLe 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   ~ MoLe 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 MoLe. If not, see <https://www.gnu.org/licenses/>.
19   -->
20
21 <androidx.constraintlayout.widget.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/account_summary_row"
25     android:layout_width="match_parent"
26     android:longClickable="true"
27     android:layout_height="wrap_content">
28
29     <CheckBox
30         android:id="@+id/account_row_check"
31         android:layout_width="wrap_content"
32         android:layout_height="match_parent"
33         android:button="@drawable/checkbox_star_black"
34         android:onClick="onAccountSummaryRowViewClicked"
35         app:layout_constraintBottom_toBottomOf="parent"
36         app:layout_constraintStart_toStartOf="parent"
37         app:layout_constraintTop_toTopOf="parent" />
38
39     <TextView
40         android:id="@+id/account_row_acc_name"
41         style="@style/account_summary_account_name"
42         android:layout_width="wrap_content"
43         android:layout_height="0dp"
44         android:layout_weight="1"
45         android:gravity="center_vertical"
46         android:onClick="onAccountSummaryRowViewClicked"
47         android:longClickable="true"
48         android:paddingStart="8dp"
49         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."
50         app:layout_constraintBottom_toBottomOf="parent"
51         app:layout_constraintStart_toEndOf="@id/account_row_check"
52         app:layout_constraintTop_toTopOf="parent"
53         tools:ignore="HardcodedText" />
54
55     <FrameLayout
56         android:id="@+id/account_expander_container"
57         android:layout_width="@dimen/thumb_row_height"
58         android:layout_height="@dimen/thumb_row_height"
59         android:foregroundGravity="center_vertical"
60         android:minHeight="@dimen/thumb_row_height"
61         android:onClick="onAccountSummaryRowViewClicked"
62         app:layout_constraintBottom_toBottomOf="parent"
63         app:layout_constraintStart_toEndOf="@id/account_row_acc_name"
64         app:layout_constraintTop_toTopOf="parent">
65
66         <ImageView
67             android:id="@+id/account_expander"
68             android:layout_width="match_parent"
69             android:layout_height="match_parent"
70             android:layout_margin="8dp"
71             android:background="@drawable/ic_expand_less_black_24dp" />
72     </FrameLayout>
73
74     <TextView
75         android:id="@+id/account_row_filler1"
76         android:layout_width="0dp"
77         android:layout_height="match_parent"
78         app:layout_constraintBottom_toBottomOf="parent"
79         app:layout_constraintEnd_toStartOf="@id/account_row_acc_amounts"
80         app:layout_constraintStart_toEndOf="@id/account_expander_container"
81         app:layout_constraintTop_toTopOf="parent" />
82
83     <TextView
84         android:id="@+id/account_row_acc_amounts"
85         style="@style/account_summary_amounts"
86         android:layout_width="wrap_content"
87         android:layout_height="wrap_content"
88         android:layout_marginEnd="8dp"
89         android:layout_weight="0"
90         android:gravity="center_vertical"
91         android:minWidth="@dimen/thumb_row_height"
92         android:onClick="onAccountSummaryRowViewClicked"
93         android:text="123,45\n678,90"
94         app:layout_constraintBottom_toBottomOf="parent"
95         app:layout_constraintEnd_toEndOf="parent"
96         app:layout_constraintTop_toTopOf="parent"
97         tools:ignore="HardcodedText" />
98
99     <FrameLayout
100         android:id="@+id/account_row_amounts_expander_container"
101         android:layout_width="0dp"
102         android:layout_height="12sp"
103         app:layout_constraintStart_toStartOf="@id/account_row_acc_amounts"
104         app:layout_constraintEnd_toEndOf="@id/account_row_acc_amounts"
105         app:layout_constraintBottom_toBottomOf="@id/account_row_acc_amounts"
106         android:background="@drawable/fade_down_white">
107
108         <!--<ImageView-->
109             <!--android:layout_gravity="center_vertical|end"-->
110             <!--android:id="@+id/account_row_amounts_expander"-->
111             <!--android:layout_width="20dp"-->
112             <!--android:layout_height="20dp"-->
113             <!--android:background="@drawable/ic_expand_more_black_24dp" />-->
114
115     </FrameLayout>
116
117     <View
118         android:id="@+id/account_summary_trailer"
119         android:layout_width="match_parent"
120         android:layout_height="80dp"
121         app:layout_constraintBottom_toBottomOf="parent"
122         app:layout_constraintEnd_toEndOf="parent"
123         app:layout_constraintStart_toStartOf="parent"
124         app:layout_constraintTop_toTopOf="parent" />
125 </androidx.constraintlayout.widget.ConstraintLayout>