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