Fix layout when account chip is hidden

This commit is contained in:
cketti 2022-09-15 22:19:20 +02:00
parent 9d058e71be
commit c3c6c25d88

View file

@ -11,6 +11,12 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Space
android:id="@+id/margin_top"
android:layout_width="match_parent"
android:layout_height="16dp"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.chip.Chip
android:id="@+id/chip"
android:layout_width="wrap_content"
@ -26,6 +32,13 @@
tools:chipBackgroundColor="#1976D2"
tools:text="Account name" />
<androidx.constraintlayout.widget.Barrier
android:id="@+id/top_margin_barrier"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="chip,margin_top" />
<com.fsck.k9.ui.helper.BottomBaselineTextView
android:id="@+id/subject"
android:layout_width="0dp"
@ -41,6 +54,8 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/flagged"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/top_margin_barrier"
app:layout_constraintVertical_bias="0.0"
tools:text="Message subject" />
<ImageView