|
219 | 219 | android:layout_width="0dp"
|
220 | 220 | android:layout_height="wrap_content"
|
221 | 221 | android:layout_marginTop="@dimen/marginStandardVerySmall"
|
222 |
| - android:layout_marginEnd="@dimen/marginStandardSmall" |
223 | 222 | android:ellipsize="end"
|
224 | 223 | android:lines="1"
|
225 |
| - app:layout_constraintEnd_toStartOf="@id/folderNameView" |
| 224 | + app:layout_constraintEnd_toStartOf="@id/folderNameCompactMode" |
226 | 225 | app:layout_constraintStart_toStartOf="parent"
|
227 | 226 | app:layout_constraintTop_toBottomOf="@id/expeditor"
|
228 | 227 | tools:text="@tools:sample/lorem[10]" />
|
229 | 228 |
|
230 | 229 | <TextView
|
231 |
| - android:id="@+id/folderNameView" |
| 230 | + android:id="@+id/folderNameCompactMode" |
232 | 231 | style="@style/BodySmall.Secondary"
|
233 | 232 | android:layout_width="wrap_content"
|
234 | 233 | android:layout_height="0dp"
|
|
254 | 253 | android:visibility="gone"
|
255 | 254 | app:layout_constraintBottom_toBottomOf="@id/mailSubject"
|
256 | 255 | app:layout_constraintEnd_toStartOf="@id/iconCalendar"
|
257 |
| - app:layout_constraintStart_toEndOf="@id/folderNameView" |
| 256 | + app:layout_constraintStart_toEndOf="@id/folderNameCompactMode" |
258 | 257 | app:layout_constraintTop_toTopOf="@id/mailSubject"
|
259 | 258 | app:tint="@color/iconColorPrimaryText"
|
260 | 259 | tools:visibility="visible" />
|
|
297 | 296 | android:ellipsize="end"
|
298 | 297 | android:lines="1"
|
299 | 298 | app:layout_constrainedWidth="true"
|
300 |
| - app:layout_constraintEnd_toEndOf="parent" |
| 299 | + app:layout_constraintEnd_toStartOf="@id/folderNameExpandMode" |
301 | 300 | app:layout_constraintStart_toStartOf="parent"
|
302 | 301 | app:layout_constraintTop_toBottomOf="@id/mailSubject"
|
303 | 302 | tools:text="@tools:sample/lorem/random" />
|
304 | 303 |
|
| 304 | + <TextView |
| 305 | + android:id="@+id/folderNameExpandMode" |
| 306 | + style="@style/BodySmall.Secondary" |
| 307 | + android:layout_width="wrap_content" |
| 308 | + android:layout_height="0dp" |
| 309 | + android:visibility="gone" |
| 310 | + app:layout_constraintBottom_toBottomOf="@id/mailBodyPreview" |
| 311 | + app:layout_constraintEnd_toEndOf="parent" |
| 312 | + app:layout_constraintHorizontal_bias="1" |
| 313 | + app:layout_constraintHorizontal_chainStyle="packed" |
| 314 | + app:layout_constraintTop_toTopOf="@id/mailBodyPreview" |
| 315 | + tools:background="@color/grey_background" |
| 316 | + tools:gravity="center" |
| 317 | + tools:text="Folder name" |
| 318 | + tools:visibility="gone" /> |
| 319 | + |
305 | 320 | </androidx.constraintlayout.widget.ConstraintLayout>
|
306 | 321 | </androidx.constraintlayout.widget.ConstraintLayout>
|
307 | 322 | </com.google.android.material.card.MaterialCardView>
|
|
0 commit comments