<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <item
        android:id="@+id/menu_search"
        android:icon="@drawable/baseline_search_24"
        android:title="@string/title_search"
        app:actionViewClass="androidx.appcompat.widget.SearchView"
        app:showAsAction="collapseActionView|always" />

    <item
        android:id="@+id/menu_sort_on"
        android:icon="@drawable/baseline_sort_24"
        android:title="@string/title_sort_on"
        app:showAsAction="ifRoom">
        <menu>
            <group android:checkableBehavior="single">
                <item
                    android:id="@+id/menu_sort_on_time"
                    android:title="@string/title_sort_on_time" />
                <item
                    android:id="@+id/menu_sort_on_unread"
                    android:title="@string/title_sort_on_unread" />
                <item
                    android:id="@+id/menu_sort_on_starred"
                    android:title="@string/title_sort_on_starred" />
            </group>
        </menu>
    </item>

    <item
        android:id="@+id/menu_folders"
        android:icon="@drawable/baseline_folder_open_24"
        android:title="@string/title_folder_primary"
        app:showAsAction="ifRoom" />

    <item
        android:id="@+id/menu_move_sent"
        android:title="@string/title_move_sent"
        app:showAsAction="never" />
</menu>
