Here is a simple XML menu file in which help to add icontext and checkbox in your toolbar menu in your android application.

<?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">

    <!-- Settings, should always be in the overflow -->
    <item
        android:id="@+id/action_settings"
        android:icon="@drawable/ic_cutlery_white_26_32"
        android:title=""
        app:showAsAction="always">
        <menu>
            <group android:checkableBehavior="all">
            <item
                android:id="@+id/top"
                android:checked="true"
                android:enabled="true"
                android:icon="@drawable/ic_chef_cap_red_26_32"
                android:title="Cooking Now"
                app:showAsAction="always|withText" />
            <item
                android:id="@+id/bottom"
                android:icon="@drawable/ic_eating__yellow_26_32"
                android:title="Go To Eating"
                app:showAsAction="always|withText" />
            </group>
        </menu>
    </item>

</menu>

Hope this will help you 🙂