|
|
@ -4,59 +4,61 @@
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/vSeparatorAttachments"
|
|
|
|
android:id="@+id/workaround"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
|
|
|
|
android:background="?attr/colorSeparator"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
<View
|
|
|
|
android:id="@+id/cbInline"
|
|
|
|
android:id="@+id/vSeparatorAttachments"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:background="?attr/colorSeparator"
|
|
|
|
android:text="@string/title_show_inline"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/ibDownloadAttachments"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<eu.faircode.email.FixedImageButton
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/ibDownloadAttachments"
|
|
|
|
android:id="@+id/cbInline"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:contentDescription="@string/title_download_all"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:padding="6dp"
|
|
|
|
android:text="@string/title_show_inline"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/ibDownloadAttachments"
|
|
|
|
android:tooltipText="@string/title_download_all"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/ibSaveAttachments"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments"
|
|
|
|
|
|
|
|
app:srcCompat="@drawable/twotone_cloud_download_24" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<eu.faircode.email.FixedImageButton
|
|
|
|
<eu.faircode.email.FixedImageButton
|
|
|
|
android:id="@+id/ibSaveAttachments"
|
|
|
|
android:id="@+id/ibDownloadAttachments"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/title_save_all"
|
|
|
|
android:contentDescription="@string/title_download_all"
|
|
|
|
android:padding="6dp"
|
|
|
|
android:padding="6dp"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:tooltipText="@string/title_save_all"
|
|
|
|
android:tooltipText="@string/title_download_all"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/ibSaveAttachments"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments"
|
|
|
|
app:srcCompat="@drawable/twotone_save_alt_24" />
|
|
|
|
app:srcCompat="@drawable/twotone_cloud_download_24" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
<eu.faircode.email.FixedImageButton
|
|
|
|
android:id="@+id/barrier_internet"
|
|
|
|
android:id="@+id/ibSaveAttachments"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
app:barrierDirection="bottom"
|
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
app:constraint_referenced_ids="cbInline,ibSaveAttachments,ibDownloadAttachments" />
|
|
|
|
android:contentDescription="@string/title_save_all"
|
|
|
|
|
|
|
|
android:padding="6dp"
|
|
|
|
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
|
|
|
|
android:tooltipText="@string/title_save_all"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/vSeparatorAttachments"
|
|
|
|
|
|
|
|
app:srcCompat="@drawable/twotone_save_alt_24" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/rvAttachment"
|
|
|
|
android:id="@+id/rvAttachment"
|
|
|
@ -65,7 +67,7 @@
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
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/barrier_internet" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/workaround" />
|
|
|
|
|
|
|
|
|
|
|
|
<eu.faircode.email.FixedTextView
|
|
|
|
<eu.faircode.email.FixedTextView
|
|
|
|
android:id="@+id/tvNoInternetAttachments"
|
|
|
|
android:id="@+id/tvNoInternetAttachments"
|
|
|
|