1 <?xml version="1.0" encoding="utf-8"?>
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.
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"
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_constraintEnd_toStartOf="@+id/account_row_acc_amounts"
34 app:layout_constraintHorizontal_chainStyle="spread_inside"
35 app:layout_constraintHorizontal_weight="3"
36 app:layout_constraintStart_toStartOf="parent"
37 app:layout_constraintTop_toTopOf="parent"
40 android:id="@+id/account_row_acc_name"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:layout_marginStart="8dp"
44 android:gravity="center_vertical"
45 android:longClickable="true"
46 android:minHeight="@dimen/default_account_row_height"
47 android:paddingStart="8dp"
48 android:text="AccountName"
49 android:textAppearance="@android:style/TextAppearance.Material.Medium"
50 app:layout_constrainedWidth="true"
51 app:layout_constraintEnd_toStartOf="@id/account_expander_container"
52 app:layout_constraintHorizontal_bias="0.0"
53 app:layout_constraintHorizontal_chainStyle="packed"
54 app:layout_constraintStart_toStartOf="parent"
55 app:layout_constraintTop_toTopOf="parent"
56 app:layout_constraintWidth_max="wrap"
57 app:layout_constraintWidth_percent=".67"
58 tools:ignore="HardcodedText"
61 <androidx.constraintlayout.widget.ConstraintLayout
62 android:id="@+id/account_expander_container"
63 android:layout_width="@dimen/thumb_row_height"
64 android:layout_height="@dimen/default_account_row_height"
65 android:foregroundGravity="center_vertical"
66 android:minHeight="@dimen/default_account_row_height"
67 app:layout_constraintBottom_toBottomOf="@id/account_row_acc_name"
68 app:layout_constraintEnd_toEndOf="parent"
69 app:layout_constraintStart_toEndOf="@id/account_row_acc_name"
70 app:layout_constraintTop_toTopOf="@id/account_row_acc_name"
74 android:id="@+id/account_expander"
75 android:layout_width="32dp"
76 android:layout_height="32dp"
77 android:background="@drawable/ic_expand_less_black_24dp"
78 android:backgroundTint="?colorPrimary"
79 android:clickable="true"
80 android:contentDescription="@string/sub_accounts_expand_collapse_trigger_description"
81 android:focusable="true"
82 app:layout_constraintBottom_toBottomOf="parent"
83 app:layout_constraintEnd_toEndOf="parent"
84 app:layout_constraintStart_toStartOf="parent"
85 app:layout_constraintTop_toTopOf="parent"
87 </androidx.constraintlayout.widget.ConstraintLayout>
88 </androidx.constraintlayout.widget.ConstraintLayout>
90 android:id="@+id/account_row_acc_amounts"
91 style="@style/account_summary_amounts"
92 android:layout_width="0dp"
93 android:layout_height="wrap_content"
94 android:layout_marginStart="12dp"
95 android:layout_marginEnd="8dp"
96 android:gravity="center_vertical"
97 android:minHeight="@dimen/default_account_row_height"
98 android:text="USD 123,45\n678,90\nIRAUSD -17 000.00"
99 android:textAppearance="@style/TextAppearance.AppCompat.Medium"
100 app:layout_constrainedWidth="true"
101 app:layout_constraintBottom_toBottomOf="parent"
102 app:layout_constraintEnd_toEndOf="parent"
103 app:layout_constraintHorizontal_weight="2"
104 app:layout_constraintStart_toEndOf="@id/account_name_layout"
105 app:layout_constraintTop_toTopOf="parent"
106 app:layout_constraintWidth_min="90sp"
107 tools:ignore="HardcodedText"
111 android:id="@+id/account_row_amounts_expander_container"
112 android:layout_width="0dp"
113 android:layout_height="18sp"
114 android:background="@drawable/fade_down_white"
115 app:layout_constraintBottom_toBottomOf="@id/account_row_acc_amounts"
116 app:layout_constraintEnd_toEndOf="@id/account_row_acc_amounts"
117 app:layout_constraintStart_toStartOf="@id/account_row_acc_amounts"
121 <include layout="@layout/last_update_layout" />
122 </androidx.constraintlayout.widget.ConstraintLayout>