]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/account_summary_row.xml
522c59308045be2f4260df93203ec11e9fdeb674
[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:layout_height="wrap_content"
27     android:longClickable="true"
28     >
29
30     <TextView
31         android:id="@+id/account_row_acc_name"
32         style="@style/account_summary_account_name"
33         android:layout_width="wrap_content"
34         android:layout_height="0dp"
35         android:layout_weight="1"
36         android:gravity="center_vertical"
37         android:longClickable="true"
38         android:onClick="onAccountSummaryRowViewClicked"
39         android:paddingStart="8dp"
40         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."
41         android:textAppearance="@android:style/TextAppearance.Material.Medium"
42         app:layout_constraintBottom_toBottomOf="parent"
43         app:layout_constraintStart_toStartOf="parent"
44         app:layout_constraintTop_toTopOf="parent"
45         tools:ignore="HardcodedText"
46         />
47
48     <FrameLayout
49         android:id="@+id/account_expander_container"
50         android:layout_width="@dimen/thumb_row_height"
51         android:layout_height="@dimen/thumb_row_height"
52         android:foregroundGravity="center_vertical"
53         android:minHeight="@dimen/thumb_row_height"
54         android:onClick="onAccountSummaryRowViewClicked"
55         app:layout_constraintBottom_toBottomOf="parent"
56         app:layout_constraintStart_toEndOf="@id/account_row_acc_name"
57         app:layout_constraintTop_toTopOf="parent"
58         >
59
60         <ImageView
61             android:id="@+id/account_expander"
62             android:layout_width="match_parent"
63             android:layout_height="match_parent"
64             android:layout_margin="8dp"
65             android:background="@drawable/ic_expand_less_black_24dp"
66             android:clickable="true"
67             android:onClick="onAccountSummaryRowViewClicked"
68             />
69     </FrameLayout>
70
71     <TextView
72         android:id="@+id/account_row_filler1"
73         android:layout_width="0dp"
74         android:layout_height="match_parent"
75         app:layout_constraintBottom_toBottomOf="parent"
76         app:layout_constraintEnd_toStartOf="@id/account_row_acc_amounts"
77         app:layout_constraintStart_toEndOf="@id/account_expander_container"
78         app:layout_constraintTop_toTopOf="parent"
79         />
80
81     <TextView
82         android:id="@+id/account_row_acc_amounts"
83         style="@style/account_summary_amounts"
84         android:layout_width="wrap_content"
85         android:layout_height="wrap_content"
86         android:layout_marginEnd="8dp"
87         android:layout_weight="0"
88         android:gravity="center_vertical"
89         android:minWidth="@dimen/thumb_row_height"
90         android:onClick="onAccountSummaryRowViewClicked"
91         android:text="123,45\n678,90"
92         android:textAppearance="@style/TextAppearance.AppCompat.Medium"
93         app:layout_constraintBottom_toBottomOf="parent"
94         app:layout_constraintEnd_toEndOf="parent"
95         app:layout_constraintTop_toTopOf="parent"
96         tools:ignore="HardcodedText"
97         />
98
99     <FrameLayout
100         android:id="@+id/account_row_amounts_expander_container"
101         android:layout_width="0dp"
102         android:layout_height="18sp"
103         android:background="@drawable/fade_down_white"
104         app:layout_constraintBottom_toBottomOf="@id/account_row_acc_amounts"
105         app:layout_constraintEnd_toEndOf="@id/account_row_acc_amounts"
106         app:layout_constraintStart_toStartOf="@id/account_row_acc_amounts"
107         >
108
109     </FrameLayout>
110
111     <View
112         android:id="@+id/account_summary_trailer"
113         android:layout_width="match_parent"
114         android:layout_height="80dp"
115         app:layout_constraintBottom_toBottomOf="parent"
116         app:layout_constraintEnd_toEndOf="parent"
117         app:layout_constraintStart_toStartOf="parent"
118         app:layout_constraintTop_toTopOf="parent"
119         />
120 </androidx.constraintlayout.widget.ConstraintLayout>