1 <?xml version="1.0" encoding="utf-8"?>
5 ~ Copyright © 2021 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.
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.
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/>.
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:animateLayoutChanges="true"
27 android:longClickable="true"
28 android:minHeight="@dimen/default_account_row_height"
30 <androidx.constraintlayout.widget.ConstraintLayout
31 android:id="@+id/account_name_layout"
32 android:layout_width="wrap_content"
33 android:layout_height="wrap_content"
34 app:layout_constraintHorizontal_chainStyle="spread_inside"
38 android:id="@+id/account_row_acc_name"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:layout_marginStart="8dp"
42 android:gravity="center_vertical"
43 android:longClickable="true"
44 android:paddingStart="8dp"
45 android:text="AccountName"
46 android:textAppearance="@android:style/TextAppearance.Material.Medium"
47 app:layout_constrainedWidth="true"
48 app:layout_constraintBottom_toBottomOf="parent"
49 app:layout_constraintEnd_toStartOf="@id/account_expander_container"
50 app:layout_constraintHorizontal_bias="0.0"
51 app:layout_constraintHorizontal_chainStyle="packed"
52 app:layout_constraintStart_toStartOf="parent"
53 app:layout_constraintTop_toTopOf="parent"
54 tools:ignore="HardcodedText"
57 <androidx.constraintlayout.widget.ConstraintLayout
58 android:id="@+id/account_expander_container"
59 android:layout_width="@dimen/thumb_row_height"
60 android:layout_height="@dimen/default_account_row_height"
61 android:foregroundGravity="center_vertical"
62 android:minHeight="@dimen/default_account_row_height"
63 app:layout_constraintBottom_toBottomOf="@id/account_row_acc_name"
64 app:layout_constraintEnd_toEndOf="parent"
65 app:layout_constraintStart_toEndOf="@id/account_row_acc_name"
66 app:layout_constraintTop_toTopOf="@id/account_row_acc_name"
70 android:id="@+id/account_expander"
71 android:layout_width="32dp"
72 android:layout_height="32dp"
73 android:background="@drawable/ic_expand_less_black_24dp"
74 android:backgroundTint="?colorPrimary"
75 android:clickable="true"
76 android:contentDescription="@string/sub_accounts_expand_collapse_trigger_description"
77 android:focusable="true"
78 app:layout_constraintBottom_toBottomOf="parent"
79 app:layout_constraintEnd_toEndOf="parent"
80 app:layout_constraintStart_toStartOf="parent"
81 app:layout_constraintTop_toTopOf="parent"
83 </androidx.constraintlayout.widget.ConstraintLayout>
84 </androidx.constraintlayout.widget.ConstraintLayout>
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_marginStart="12dp"
91 android:gravity="center_vertical"
92 android:text="USD 123,45\n678,90\nIRAUSD -17 000.00"
93 android:textAppearance="@style/TextAppearance.AppCompat.Medium"
94 app:layout_constrainedWidth="true"
95 app:layout_constraintWidth_min="90sp"
96 tools:ignore="HardcodedText"
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"
108 <androidx.constraintlayout.helper.widget.Flow
109 android:id="@+id/flow_wrapper"
110 android:layout_width="match_parent"
111 android:layout_height="wrap_content"
112 android:minHeight="@dimen/default_account_row_height"
113 app:constraint_referenced_ids="account_name_layout,account_row_acc_amounts"
114 app:flow_firstHorizontalBias="0"
115 app:flow_firstHorizontalStyle="spread_inside"
116 app:flow_horizontalBias="1"
117 app:flow_verticalStyle="spread_inside"
118 app:flow_wrapMode="chain"
119 app:layout_constraintBottom_toBottomOf="parent"
120 app:layout_constraintStart_toStartOf="parent"
121 app:layout_constraintTop_toTopOf="parent"
122 android:layout_marginEnd="@dimen/half_text_margin"
124 </androidx.constraintlayout.widget.ConstraintLayout>