title: Menu is not showing in custom toolbar
body: <p>I am trying to use custom menu in my android app. I want to add some menu items.
  For the purpose, I add following in my menu_main.xml:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      tools:context=".MainActivity"&gt;
      &lt;item
          android:id="@+id/action_settings"
          android:orderInCategory="100"
          android:title="@string/action_settings"
          app:showAsAction="always" /&gt;
  
      &lt;item
          android:id="@+id/contact"
          android:icon="@drawable/ic_star"
          android:orderInCategory="2000"
          android:title="@string/Rate"
          app:showAsAction="always" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>And in MainActivity:</p>
  
  <pre><code>  @Override
      public boolean onCreateOptionsMenu(Menu menu)
      {
          menu.clear();
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.menu_main, menu);
          return super.onPrepareOptionsMenu(menu);
      }
  
      @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)
          {
              Toast.makeText(this,"Hello from settings",Toast.LENGTH_LONG).show();
              return true;
  
          }
          if ( id == R.id.contact)
          {
              startActivity(new Intent(this,ContactUs.class));
              return true;
          }
  
          return super.onOptionsItemSelected(item);
      }
  </code></pre>
  
  <p>But, it is not working at all.
  I tried some solutions on SO, but none of them worked.</p>
  
  <p>e.g. <a href="https://stackoverflow.com/questions/17914017/android-4-3-menu-item-showasaction-always-ignored?rq=1">this</a> </p>
  
  <p>Please help me to solve this.</p>