how to align menu items horizontally : <p>How to create menu items aligned horizontally in the first row like google chrome </p>

<p><a href="https://i.stack.imgur.com/aLaig.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aLaig.png" alt="enter image description here"></a></p>

<p>I created the first item with a menu child but by this way i got a row that send me to the other menu, So how to do that using menu file ? i don't want to use Dialog</p>

<p>Here is my menu file : </p>

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

    &lt;group android:id="@+id/toolbar_menu"
        android:visible="true"&gt;
    &lt;item
        android:id="@+id/item_tabs"
        android:icon="@drawable/ic_tabs_24dp"
        android:title="@null"
        app:showAsAction="always"/&gt;
    &lt;item
        android:id="@+id/icon_row_menu_id"
        android:title="@null"
        android:visible="true"&gt;
        &lt;menu&gt;
            &lt;item
                android:id="@+id/item_back"
                android:icon="@drawable/ic_arrow_back_24dp"
                android:title="@string/go_back" /&gt;
            &lt;item
                android:id="@+id/item_forward"
                android:icon="@drawable/ic_arrow_forward_24dp"
                android:title="@string/go_forward" /&gt;
            &lt;item
                android:id="@+id/item_bookmark_page"
                android:icon="@drawable/ic_star_border_24dp"
                android:title="@string/bookmark_this_page" /&gt;
            &lt;item
                android:id="@+id/item_download_page"
                android:icon="@drawable/ic_download_24dp"
                android:title="@string/download_page" /&gt;
            &lt;item
                android:id="@+id/item_info"
                android:icon="@drawable/ic_info_outline_24dp"
                android:title="@string/view_site_information" /&gt;
        &lt;/menu&gt;
    &lt;/item&gt;
    &lt;item
        android:id="@+id/item_new_tab"
        android:title="@string/new_tab" /&gt;
    &lt;item
        android:id="@+id/item_new_incognito_tab"
        android:title="@string/new_incognito_tab" /&gt;
    &lt;item
        android:id="@+id/item_bookmarks"
        android:title="@string/bookmarks" /&gt;
    &lt;item
        android:id="@+id/item_history"
        android:title="@string/history" /&gt;
    &lt;item
        android:id="@+id/item_downloads"
        android:title="@string/download" /&gt;
    &lt;item
        android:id="@+id/item_settings"
        android:title="@string/settings" /&gt;
    &lt;/group&gt;
&lt;/menu&gt;
</code></pre>

<p>And here how i use it :</p>

<pre><code>@Override
public boolean onCreateOptionsMenu(Menu menu) {
    mainMenu = menu;
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.main_menu, menu);
    return true;
}
</code></pre>
