|
1 | 1 | <?xml version="1.0" encoding="utf-8"?><!-- |
2 | 2 | ~ Infomaniak Mail - Android |
3 | | - ~ Copyright (C) 2023 Infomaniak Network SA |
| 3 | + ~ Copyright (C) 2023-2024 Infomaniak Network SA |
4 | 4 | ~ |
5 | 5 | ~ This program is free software: you can redistribute it and/or modify |
6 | 6 | ~ it under the terms of the GNU General Public License as published by |
|
15 | 15 | ~ You should have received a copy of the GNU General Public License |
16 | 16 | ~ along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | --> |
18 | | -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
19 | 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
20 | 20 | xmlns:tools="http://schemas.android.com/tools" |
21 | 21 | android:layout_width="match_parent" |
|
27 | 27 | android:id="@+id/toolbar" |
28 | 28 | android:layout_width="match_parent" |
29 | 29 | android:layout_height="wrap_content" |
| 30 | + app:layout_constraintEnd_toEndOf="parent" |
| 31 | + app:layout_constraintStart_toStartOf="parent" |
| 32 | + app:layout_constraintTop_toTopOf="parent" |
30 | 33 | app:navigationIcon="@drawable/ic_close_big" |
31 | 34 | app:navigationIconTint="@color/iconColor" |
32 | 35 | app:titleCentered="true" |
|
37 | 40 | android:id="@+id/nestedScrollView" |
38 | 41 | android:layout_width="match_parent" |
39 | 42 | android:layout_height="0dp" |
40 | | - android:layout_weight="1"> |
| 43 | + app:layout_constraintBottom_toTopOf="@id/aiPropositionBottomBar" |
| 44 | + app:layout_constraintEnd_toEndOf="parent" |
| 45 | + app:layout_constraintStart_toStartOf="parent" |
| 46 | + app:layout_constraintTop_toBottomOf="@id/toolbar"> |
41 | 47 |
|
42 | 48 | <LinearLayout |
43 | 49 | android:layout_width="match_parent" |
|
86 | 92 |
|
87 | 93 | </androidx.core.widget.NestedScrollView> |
88 | 94 |
|
| 95 | + <ImageView |
| 96 | + android:id="@+id/generationLoaderGradient" |
| 97 | + android:layout_width="match_parent" |
| 98 | + android:layout_height="136dp" |
| 99 | + android:importantForAccessibility="no" |
| 100 | + android:src="@drawable/ai_proposition_loader_gradient" |
| 101 | + app:layout_constraintBottom_toTopOf="@id/aiPropositionBottomBar" |
| 102 | + app:layout_constraintEnd_toEndOf="parent" |
| 103 | + app:layout_constraintStart_toStartOf="parent" |
| 104 | + app:layout_constraintTop_toBottomOf="@id/toolbar" |
| 105 | + app:layout_constraintVertical_bias="1" |
| 106 | + tools:visibility="gone" /> |
| 107 | + |
| 108 | + <ProgressBar |
| 109 | + android:id="@+id/generationLoaderProgressBar" |
| 110 | + android:layout_width="48dp" |
| 111 | + android:layout_height="48dp" |
| 112 | + android:layout_gravity="center_vertical" |
| 113 | + android:layout_marginBottom="@dimen/marginStandard" |
| 114 | + android:indeterminate="true" |
| 115 | + app:layout_constraintBottom_toTopOf="@id/aiPropositionBottomBar" |
| 116 | + app:layout_constraintEnd_toEndOf="parent" |
| 117 | + app:layout_constraintStart_toStartOf="parent" |
| 118 | + tools:visibility="gone" /> |
| 119 | + |
89 | 120 | <com.google.android.material.card.MaterialCardView |
90 | 121 | android:id="@+id/aiPropositionBottomBar" |
91 | 122 | style="@style/CardViewMail" |
92 | 123 | android:layout_width="match_parent" |
93 | 124 | android:layout_height="wrap_content" |
94 | 125 | android:layout_gravity="bottom" |
95 | | - app:cardElevation="@dimen/newMessageBottomBarElevation"> |
| 126 | + app:cardElevation="@dimen/newMessageBottomBarElevation" |
| 127 | + app:layout_constraintBottom_toBottomOf="parent" |
| 128 | + app:layout_constraintEnd_toEndOf="parent" |
| 129 | + app:layout_constraintStart_toStartOf="parent"> |
96 | 130 |
|
97 | 131 | <LinearLayout |
98 | 132 | android:layout_width="match_parent" |
|
145 | 179 |
|
146 | 180 | </LinearLayout> |
147 | 181 |
|
148 | | - <LinearLayout |
149 | | - android:id="@+id/generationLoader" |
150 | | - android:layout_width="wrap_content" |
| 182 | + <TextView |
| 183 | + android:id="@+id/generationLoaderText" |
| 184 | + style="@style/BodyMedium.Tertiary" |
| 185 | + android:layout_width="match_parent" |
151 | 186 | android:layout_height="wrap_content" |
152 | | - android:layout_gravity="center_vertical|end" |
153 | | - android:orientation="horizontal" |
154 | | - tools:visibility="gone"> |
155 | | - |
156 | | - <TextView |
157 | | - style="@style/BodyMedium.Tertiary" |
158 | | - android:layout_width="wrap_content" |
159 | | - android:layout_height="wrap_content" |
160 | | - android:layout_gravity="center_vertical" |
161 | | - android:layout_marginEnd="@dimen/marginStandardMedium" |
162 | | - android:text="@string/aiPromptGenerationLoader" /> |
163 | | - |
164 | | - <ProgressBar |
165 | | - android:layout_width="@dimen/marginStandardMedium" |
166 | | - android:layout_height="@dimen/marginStandardMedium" |
167 | | - android:layout_gravity="center_vertical" |
168 | | - android:indeterminate="true" /> |
169 | | - |
170 | | - </LinearLayout> |
| 187 | + android:layout_gravity="center_vertical" |
| 188 | + android:gravity="end|center_vertical" |
| 189 | + android:text="@string/aiPromptGenerationLoader" |
| 190 | + tools:visibility="gone" /> |
171 | 191 |
|
172 | 192 | <com.google.android.material.button.MaterialButton |
173 | 193 | android:id="@+id/retryButton" |
|
181 | 201 | </FrameLayout> |
182 | 202 | </LinearLayout> |
183 | 203 | </com.google.android.material.card.MaterialCardView> |
184 | | -</LinearLayout> |
| 204 | +</androidx.constraintlayout.widget.ConstraintLayout> |
0 commit comments