How to add overflow menu to Toolbar?
<p>I'm trying to use Android <code>ActionBar</code> in my app, and have an option that's hidden away in the overflow menu.</p>

<p>There's a lot of documentation out there, but it's confusing because most of it is only relevant to very old versions of Android, and when you try applying the same concepts, they don't work anymore or work differently.</p>

<p>This is in my <code>Activity</code> layout</p>

<pre><code>&lt;android.support.v7.widget.Toolbar
    android:id="@+id/my_toolbar"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    android:titleTextColor="@android:color/white"
    android:background="@color/colorPrimary"
    android:elevation="4dp"
    android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
    app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/&gt;
</code></pre>

<p>And this is in my <code>Activity</code>'s <code>onCreate()</code> method</p>

<pre><code>// sets up activity toolbar
Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);
setSupportActionBar(myToolbar);

myToolbar.showOverflowMenu();
myToolbar.setTitleTextColor(R.color.lightPrimaryText);
</code></pre>

<p>I've also tried inflating a menu xml file from the <code>onCreateOptionsMenu()</code>, but that also didn't give me the results I wanted.</p>