<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <View
        android:id="@+id/vSeparatorTop"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_marginTop="3dp"
        android:background="?attr/colorSeparator"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <com.google.android.material.bottomnavigation.BottomNavigationView
        android:id="@+id/bnvActions"
        android:layout_width="0dp"
        android:layout_height="36dp"
        android:background="@android:color/transparent"
        app:elevation="0dp"
        app:itemIconTint="?android:attr/textColorSecondary"
        app:itemTextColor="?android:attr/textColorSecondary"
        app:labelVisibilityMode="unlabeled"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/vSeparatorTop"
        app:menu="@menu/action_message" />

    <View
        android:id="@+id/vSeparatorBottom"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="?attr/colorSeparator"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/bnvActions" />

    <eu.faircode.email.ContentLoadingProgressBar
        android:id="@+id/pbBody"
        style="@style/Base.Widget.AppCompat.ProgressBar"
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:layout_marginStart="6dp"
        android:indeterminate="true"
        app:layout_constraintBottom_toBottomOf="@+id/ibFull"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@+id/ibFull" />

    <ImageButton
        android:id="@+id/ibDecrypt"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:layout_marginTop="3dp"
        android:layout_marginEnd="12dp"
        android:background="@null"
        android:contentDescription="@string/title_decrypt"
        android:foregroundTint="?android:attr/textColorSecondary"
        android:padding="3dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_decrypt"
        app:layout_constraintEnd_toStartOf="@+id/ibUnsubscribe"
        app:layout_constraintTop_toBottomOf="@id/vSeparatorBottom"
        app:srcCompat="@drawable/baseline_lock_open_24" />

    <ImageButton
        android:id="@+id/ibUnsubscribe"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:layout_marginTop="3dp"
        android:layout_marginEnd="12dp"
        android:background="@null"
        android:contentDescription="@string/title_legend_show_unsubscribe"
        android:foregroundTint="?android:attr/textColorSecondary"
        android:padding="3dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_legend_show_unsubscribe"
        app:layout_constraintEnd_toStartOf="@+id/ibImages"
        app:layout_constraintTop_toBottomOf="@id/vSeparatorBottom"
        app:srcCompat="@drawable/baseline_unsubscribe_24" />

    <ImageButton
        android:id="@+id/ibImages"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:layout_marginTop="3dp"
        android:layout_marginEnd="12dp"
        android:background="@null"
        android:contentDescription="@string/title_legend_show_images"
        android:foregroundTint="?android:attr/textColorSecondary"
        android:padding="3dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_legend_show_images"
        app:layout_constraintEnd_toStartOf="@+id/ibFull"
        app:layout_constraintTop_toBottomOf="@id/vSeparatorBottom"
        app:srcCompat="@drawable/baseline_image_24" />

    <ImageButton
        android:id="@+id/ibFull"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:layout_marginTop="3dp"
        android:background="@null"
        android:contentDescription="@string/title_legend_show_full"
        android:foregroundTint="?android:attr/textColorSecondary"
        android:padding="3dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_legend_show_full"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/vSeparatorBottom"
        app:srcCompat="@drawable/baseline_fullscreen_24" />

    <androidx.constraintlayout.widget.Group
        android:id="@+id/grpActions"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:constraint_referenced_ids="vSeparatorTop,bnvActions,vSeparatorBottom" />
</androidx.constraintlayout.widget.ConstraintLayout>