]> git.ktnx.net Git - mobile-ledger-staging.git/blob - app/src/main/res/layout/account_summary_row.xml
49220a9390a61f26eb3cbb698ba685603c746d36
[mobile-ledger-staging.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         android:textAppearance="@style/TextAppearance.AppCompat.Medium"
51         app:layout_constraintBottom_toBottomOf="parent"
52         app:layout_constraintStart_toEndOf="@id/account_row_check"
53         app:layout_constraintTop_toTopOf="parent"
54         tools:ignore="HardcodedText" />
55
56     <FrameLayout
57         android:id="@+id/account_expander_container"
58         android:layout_width="@dimen/thumb_row_height"
59         android:layout_height="@dimen/thumb_row_height"
60         android:foregroundGravity="center_vertical"
61         android:minHeight="@dimen/thumb_row_height"
62         android:onClick="onAccountSummaryRowViewClicked"
63         app:layout_constraintBottom_toBottomOf="parent"
64         app:layout_constraintStart_toEndOf="@id/account_row_acc_name"
65         app:layout_constraintTop_toTopOf="parent">
66
67         <ImageView
68             android:id="@+id/account_expander"
69             android:layout_width="match_parent"
70             android:layout_height="match_parent"
71             android:layout_margin="8dp"
72             android:background="@drawable/ic_expand_less_black_24dp"
73             android:clickable="true"
74             android:onClick="onAccountSummaryRowViewClicked" />
75     </FrameLayout>
76
77     <TextView
78         android:id="@+id/account_row_filler1"
79         android:layout_width="0dp"
80         android:layout_height="match_parent"
81         app:layout_constraintBottom_toBottomOf="parent"
82         app:layout_constraintEnd_toStartOf="@id/account_row_acc_amounts"
83         app:layout_constraintStart_toEndOf="@id/account_expander_container"
84         app:layout_constraintTop_toTopOf="parent" />
85
86     <TextView
87         android:id="@+id/account_row_acc_amounts"
88         style="@style/account_summary_amounts"
89         android:layout_width="wrap_content"
90         android:layout_height="wrap_content"
91         android:layout_marginEnd="8dp"
92         android:layout_weight="0"
93         android:gravity="center_vertical"
94         android:minWidth="@dimen/thumb_row_height"
95         android:onClick="onAccountSummaryRowViewClicked"
96         android:text="123,45\n678,90"
97         android:textAppearance="@style/TextAppearance.AppCompat.Medium"
98         app:layout_constraintBottom_toBottomOf="parent"
99         app:layout_constraintEnd_toEndOf="parent"
100         app:layout_constraintTop_toTopOf="parent"
101         tools:ignore="HardcodedText" />
102
103     <FrameLayout
104         android:id="@+id/account_row_amounts_expander_container"
105         android:layout_width="0dp"
106         android:layout_height="18sp"
107         app:layout_constraintStart_toStartOf="@id/account_row_acc_amounts"
108         app:layout_constraintEnd_toEndOf="@id/account_row_acc_amounts"
109         app:layout_constraintBottom_toBottomOf="@id/account_row_acc_amounts"
110         android:background="@drawable/fade_down_white">
111
112         <!--<ImageView-->
113         <!--android:layout_gravity="center_vertical|end"-->
114         <!--android:id="@+id/account_row_amounts_expander"-->
115         <!--android:layout_width="20dp"-->
116         <!--android:layout_height="20dp"-->
117         <!--android:background="@drawable/ic_expand_more_black_24dp" />-->
118
119     </FrameLayout>
120
121     <View
122         android:id="@+id/account_summary_trailer"
123         android:layout_width="match_parent"
124         android:layout_height="80dp"
125         app:layout_constraintBottom_toBottomOf="parent"
126         app:layout_constraintEnd_toEndOf="parent"
127         app:layout_constraintStart_toStartOf="parent"
128         app:layout_constraintTop_toTopOf="parent" />
129 </androidx.constraintlayout.widget.ConstraintLayout>