Use barrier instead of min height

This commit is contained in:
M66B 2019-08-15 20:48:31 +02:00
parent ea0d888764
commit b03d527487
1 changed files with 9 additions and 2 deletions

View File

@ -68,7 +68,7 @@
android:layout_marginTop="3dp" android:layout_marginTop="3dp"
android:layout_marginEnd="6dp" android:layout_marginEnd="6dp"
android:fontFamily="monospace" android:fontFamily="monospace"
android:minHeight="432dp" android:minHeight="60dp"
android:paddingBottom="6dp" android:paddingBottom="6dp"
android:text="Body" android:text="Body"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
@ -233,6 +233,13 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/ibForward" /> app:layout_constraintTop_toBottomOf="@+id/ibForward" />
<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier_body"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="tvBody,ibReply" />
<include <include
android:id="@+id/InCalendar" android:id="@+id/InCalendar"
layout="@layout/include_message_calendar" layout="@layout/include_message_calendar"
@ -240,7 +247,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvBody" /> app:layout_constraintTop_toBottomOf="@id/barrier_body" />
<include <include
android:id="@+id/inAttachmentsAlt" android:id="@+id/inAttachmentsAlt"