]> git.ktnx.net Git - mobile-ledger-staging.git/blob - app/src/main/res/layout/account_summary_row.xml
da058361e50503d8ffef8d00babefe0f50d0cb42
[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 © 2020 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 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
21     xmlns:app="http://schemas.android.com/apk/res-auto"
22     xmlns:tools="http://schemas.android.com/tools"
23     android:id="@+id/account_summary_row"
24     android:layout_width="match_parent"
25     android:layout_height="wrap_content"
26     android:longClickable="true"
27     android:minHeight="@dimen/thumb_row_height"
28     >
29     <androidx.constraintlayout.widget.ConstraintLayout
30         android:id="@+id/account_name_layout"
31         android:layout_width="0dp"
32         android:layout_height="wrap_content"
33         app:layout_constraintBottom_toBottomOf="parent"
34         app:layout_constraintEnd_toStartOf="@+id/account_row_acc_amounts"
35         app:layout_constraintHorizontal_chainStyle="spread_inside"
36         app:layout_constraintHorizontal_weight="3"
37         app:layout_constraintStart_toStartOf="parent"
38         app:layout_constraintTop_toTopOf="parent"
39         >
40         <TextView
41             android:id="@+id/account_row_acc_name"
42             style="@style/account_summary_account_name"
43             android:layout_width="wrap_content"
44             android:layout_height="wrap_content"
45             android:layout_marginStart="8dp"
46             android:gravity="center_vertical"
47             android:longClickable="true"
48             android:onClick="onAccountSummaryRowViewClicked"
49             android:paddingStart="8dp"
50             android:text="AccountNameALongOne"
51             android:textAppearance="@android:style/TextAppearance.Material.Medium"
52                 app:layout_constrainedWidth="true"
53                 app:layout_constraintBottom_toBottomOf="parent"
54                 app:layout_constraintEnd_toStartOf="@id/account_expander_container"
55                 app:layout_constraintHorizontal_bias="0.0"
56                 app:layout_constraintHorizontal_chainStyle="packed"
57                 app:layout_constraintStart_toStartOf="parent"
58                 app:layout_constraintTop_toTopOf="parent"
59                 app:layout_constraintWidth_max="wrap"
60                 app:layout_constraintWidth_percent=".67"
61                 tools:ignore="HardcodedText"
62                 />
63
64             <androidx.constraintlayout.widget.ConstraintLayout
65                 android:id="@+id/account_expander_container"
66                 android:layout_width="@dimen/thumb_row_height"
67                 android:layout_height="@dimen/thumb_row_height"
68                 android:foregroundGravity="center_vertical"
69                 android:minHeight="@dimen/thumb_row_height"
70                 android:onClick="onAccountSummaryRowViewClicked"
71                 app:layout_constraintBottom_toBottomOf="@id/account_row_acc_name"
72                 app:layout_constraintEnd_toEndOf="parent"
73                 app:layout_constraintStart_toEndOf="@id/account_row_acc_name"
74                 app:layout_constraintTop_toTopOf="@id/account_row_acc_name"
75                 >
76
77                 <ImageView
78                     android:id="@+id/account_expander"
79                     android:layout_width="32dp"
80                     android:layout_height="32dp"
81                     android:background="@drawable/ic_expand_less_black_24dp"
82                     android:clickable="true"
83                     android:onClick="onAccountSummaryRowViewClicked"
84                     app:layout_constraintBottom_toBottomOf="parent"
85                     app:layout_constraintEnd_toEndOf="parent"
86                     app:layout_constraintStart_toStartOf="parent"
87                     app:layout_constraintTop_toTopOf="parent"
88                     />
89             </androidx.constraintlayout.widget.ConstraintLayout>
90         </androidx.constraintlayout.widget.ConstraintLayout>
91         <TextView
92             android:id="@+id/account_row_acc_amounts"
93             style="@style/account_summary_amounts"
94             android:layout_width="0dp"
95             android:layout_height="wrap_content"
96             android:layout_marginStart="12dp"
97             android:layout_marginEnd="8dp"
98             android:gravity="center_vertical"
99             android:onClick="onAccountSummaryRowViewClicked"
100             android:text="USD 123,45\n678,90\nIRAUSD -17 000.00"
101             android:textAppearance="@style/TextAppearance.AppCompat.Medium"
102             app:layout_constrainedWidth="true"
103             app:layout_constraintBottom_toBottomOf="parent"
104             app:layout_constraintEnd_toEndOf="parent"
105             app:layout_constraintHorizontal_weight="2"
106             app:layout_constraintStart_toEndOf="@id/account_name_layout"
107             app:layout_constraintTop_toTopOf="parent"
108             app:layout_constraintWidth_min="90sp"
109             tools:ignore="HardcodedText"
110             />
111
112         <FrameLayout
113             android:id="@+id/account_row_amounts_expander_container"
114             android:layout_width="0dp"
115             android:layout_height="18sp"
116             android:background="@drawable/fade_down_white"
117             app:layout_constraintBottom_toBottomOf="@id/account_row_acc_amounts"
118             app:layout_constraintEnd_toEndOf="@id/account_row_acc_amounts"
119             app:layout_constraintStart_toStartOf="@id/account_row_acc_amounts"
120             >
121
122         </FrameLayout>
123
124     </androidx.constraintlayout.widget.ConstraintLayout>