]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/account_summary_row.xml
revert unintentional change in text color
[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             android:clickable="true"
73             android:onClick="onAccountSummaryRowViewClicked" />
74     </FrameLayout>
75
76     <TextView
77         android:id="@+id/account_row_filler1"
78         android:layout_width="0dp"
79         android:layout_height="match_parent"
80         app:layout_constraintBottom_toBottomOf="parent"
81         app:layout_constraintEnd_toStartOf="@id/account_row_acc_amounts"
82         app:layout_constraintStart_toEndOf="@id/account_expander_container"
83         app:layout_constraintTop_toTopOf="parent" />
84
85     <TextView
86         android:id="@+id/account_row_acc_amounts"
87         style="@style/account_summary_amounts"
88         android:layout_width="wrap_content"
89         android:layout_height="wrap_content"
90         android:layout_marginEnd="8dp"
91         android:layout_weight="0"
92         android:gravity="center_vertical"
93         android:minWidth="@dimen/thumb_row_height"
94         android:onClick="onAccountSummaryRowViewClicked"
95         android:text="123,45\n678,90"
96         app:layout_constraintBottom_toBottomOf="parent"
97         app:layout_constraintEnd_toEndOf="parent"
98         app:layout_constraintTop_toTopOf="parent"
99         tools:ignore="HardcodedText" />
100
101     <FrameLayout
102         android:id="@+id/account_row_amounts_expander_container"
103         android:layout_width="0dp"
104         android:layout_height="12sp"
105         app:layout_constraintStart_toStartOf="@id/account_row_acc_amounts"
106         app:layout_constraintEnd_toEndOf="@id/account_row_acc_amounts"
107         app:layout_constraintBottom_toBottomOf="@id/account_row_acc_amounts"
108         android:background="@drawable/fade_down_white">
109
110         <!--<ImageView-->
111             <!--android:layout_gravity="center_vertical|end"-->
112             <!--android:id="@+id/account_row_amounts_expander"-->
113             <!--android:layout_width="20dp"-->
114             <!--android:layout_height="20dp"-->
115             <!--android:background="@drawable/ic_expand_more_black_24dp" />-->
116
117     </FrameLayout>
118
119     <View
120         android:id="@+id/account_summary_trailer"
121         android:layout_width="match_parent"
122         android:layout_height="80dp"
123         app:layout_constraintBottom_toBottomOf="parent"
124         app:layout_constraintEnd_toEndOf="parent"
125         app:layout_constraintStart_toStartOf="parent"
126         app:layout_constraintTop_toTopOf="parent" />
127 </androidx.constraintlayout.widget.ConstraintLayout>