title: Showing a menu overflow button in a Toolbar
body: <p>I've created a <code>Toolbar</code> for Lollipop, but I can't seem to figure out how to add an overflow button to the toolbar. I'm not going to be using the v7 appcompat toolbar, as I want to explicitly use the <code>Toolbar</code> widget. I want it to look something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/L5lSA.png" alt="enter image description here"></p>
  
  <p><strong>main_activity.xml</strong></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:fab="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
  &lt;Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="112dp"
      android:elevation="4dp"
      android:layout_alignParentTop="true"
      android:minHeight="?android:attr/actionBarSize"
      android:background="?android:attr/colorPrimary"
      android:gravity="bottom"
      android:paddingBottom="16dp"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>Main class</strong>        </p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_quotebook);
  
  
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
      getWindow().setStatusBarColor(getResources().getColor(R.color.primary_dark));
      getWindow().setNavigationBarColor(getResources().getColor(R.color.primary_dark));
  
      initToolbar();
  
  }
  
  private void initToolbar() {
      mToolbar = (Toolbar) findViewById(R.id.toolbar);
      mToolbar.setTitleTextColor(Color.WHITE);
      mToolbar.setTitle(R.string.app_shortname);
      mToolbar.showOverflowMenu();
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      getMenuInflater().inflate(R.menu.menu_overflow, menu);
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // Handle action bar item clicks here. The action bar will
      // automatically handle clicks on the Home/Up button, so long
      // as you specify a parent activity in AndroidManifest.xml.
      int id = item.getItemId();
  
      //noinspection SimplifiableIfStatement
      if (id == R.id.action_settings) {
          return true;
      }
  
      return super.onOptionsItemSelected(item);
  }
  </code></pre>
  
  <p><strong>menu.xml</strong></p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
  &lt;item
      android:id="@+id/action_settings"
      android:orderInCategory="100"
      android:title="@string/action_settings"
      android:showAsAction="always"
      android:visible="true"/&gt;
  
  &lt;/menu&gt;
  </code></pre>