Moved attachment controls to top

This commit is contained in:
M66B 2020-06-25 21:45:30 +02:00
parent 5d83367a68
commit 70204f5527
1 changed files with 13 additions and 13 deletions

View File

@ -14,15 +14,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvAttachment"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments" />
<CheckBox
android:id="@+id/cbInline"
android:layout_width="0dp"
@ -31,7 +22,7 @@
android:text="@string/title_show_inline"
app:layout_constraintEnd_toStartOf="@+id/ibDownloadAttachments"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/rvAttachment" />
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments" />
<ImageButton
android:id="@+id/ibDownloadAttachments"
@ -45,7 +36,7 @@
android:scaleType="fitCenter"
android:tooltipText="@string/title_download_all"
app:layout_constraintEnd_toStartOf="@id/ibSaveAttachments"
app:layout_constraintTop_toBottomOf="@+id/rvAttachment"
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments"
app:srcCompat="@drawable/baseline_cloud_download_24" />
<ImageButton
@ -60,7 +51,7 @@
android:scaleType="fitCenter"
android:tooltipText="@string/title_save_all"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/rvAttachment"
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments"
app:srcCompat="@drawable/baseline_save_24" />
<androidx.constraintlayout.widget.Barrier
@ -70,6 +61,15 @@
app:barrierDirection="bottom"
app:constraint_referenced_ids="cbInline,ibSaveAttachments,ibDownloadAttachments" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rvAttachment"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="3dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/barrier_internet" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvNoInternetAttachments"
android:layout_width="wrap_content"
@ -80,7 +80,7 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small"
app:layout_constraintEnd_toEndOf="@id/rvAttachment"
app:layout_constraintStart_toStartOf="@id/rvAttachment"
app:layout_constraintTop_toBottomOf="@id/barrier_internet" />
app:layout_constraintTop_toBottomOf="@id/rvAttachment" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpAttachments"