<?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"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <View
        android:id="@+id/vSeparator"
        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" />

    <eu.faircode.email.ContentLoadingProgressBar
        android:id="@+id/pbBody"
        style="@style/Base.Widget.AppCompat.ProgressBar"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:indeterminate="true"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/vSeparator" />

    <ImageButton
        android:id="@+id/ibTools"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_more"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_legend_expander"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/vSeparator"
        app:srcCompat="@drawable/expander_hor" />

    <androidx.constraintlayout.helper.widget.Flow
        android:id="@+id/ibFlow"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginEnd="3dp"
        app:constraint_referenced_ids="ibMore,ibInbox,ibJunk,ibTrash,ibArchive,ibMove,ibCopy,ibLabels,ibAnswer,ibEvent,ibPrint,ibUnsubscribe,ibRule,ibUndo"
        app:flow_horizontalBias="0"
        app:flow_horizontalGap="3dp"
        app:flow_horizontalStyle="packed"
        app:flow_wrapMode="chain"
        app:layout_constraintEnd_toStartOf="@+id/ibVerify"
        app:layout_constraintStart_toEndOf="@id/ibTools"
        app:layout_constraintTop_toBottomOf="@id/vSeparator" />

    <ImageButton
        android:id="@+id/ibMore"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_more"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_more"
        app:srcCompat="@drawable/baseline_more_horiz_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibInbox"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_folder_inbox"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_folder_inbox"
        app:srcCompat="@drawable/baseline_move_to_inbox_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibJunk"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_spam"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_spam"
        app:srcCompat="@drawable/baseline_report_problem_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibTrash"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_delete"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_delete"
        app:srcCompat="@drawable/baseline_delete_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibArchive"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_archive"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_archive"
        app:srcCompat="@drawable/baseline_archive_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibMove"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_move"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_move"
        app:srcCompat="@drawable/baseline_folder_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibCopy"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_copy"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_copy"
        app:srcCompat="@drawable/baseline_file_copy_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibLabels"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:padding="6dp"
        android:scaleType="fitCenter"
        app:srcCompat="@drawable/baseline_label_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibAnswer"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_reply"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_reply"
        app:srcCompat="@drawable/baseline_reply_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibEvent"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_event"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_event"
        app:srcCompat="@drawable/baseline_event_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibPrint"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_print"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_print"
        app:srcCompat="@drawable/baseline_print_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibUnsubscribe"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_legend_show_unsubscribe"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_legend_show_unsubscribe"
        app:srcCompat="@drawable/baseline_unsubscribe_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibRule"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_legend_create_rule"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_legend_create_rule"
        app:srcCompat="@drawable/baseline_rule_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibUndo"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_undo"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_undo"
        app:srcCompat="@drawable/baseline_undo_24"
        tools:ignore="MissingConstraints" />

    <ImageButton
        android:id="@+id/ibVerify"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:layout_marginEnd="3dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_sign"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_sign"
        app:layout_constraintEnd_toStartOf="@+id/ibDecrypt"
        app:layout_constraintTop_toBottomOf="@id/vSeparator"
        app:srcCompat="@drawable/baseline_gesture_24" />

    <ImageButton
        android:id="@+id/ibDecrypt"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:layout_marginEnd="3dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_decrypt"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_decrypt"
        app:layout_constraintEnd_toStartOf="@+id/ibImages"
        app:layout_constraintTop_toBottomOf="@id/vSeparator"
        app:srcCompat="@drawable/baseline_lock_open_24" />

    <ImageButton
        android:id="@+id/ibImages"
        android:layout_width="36dp"
        android:layout_height="36dp"
        android:layout_marginEnd="3dp"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:contentDescription="@string/title_legend_show_images"
        android:padding="6dp"
        android:scaleType="fitCenter"
        android:tooltipText="@string/title_legend_show_images"
        app:layout_constraintEnd_toStartOf="@+id/ibFull"
        app:layout_constraintTop_toBottomOf="@id/vSeparator"
        app:srcCompat="@drawable/baseline_image_24" />

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

    <eu.faircode.email.FixedTextView
        android:id="@+id/tvSignedData"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:text="@string/title_signed_data"
        android:textAppearance="@style/TextAppearance.AppCompat.Small"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@id/ibVerify" />
</androidx.constraintlayout.widget.ConstraintLayout>
