title: Action buttons doesn't show up on Action Bar?
body: <p>I am following the tutorial on <a href="http://developer.android.com" rel="noreferrer">developer.android.com</a> and trying to add items on action bar. </p>
  
  <p>Although i added all the code the search action shows as an overflow element instead of an action button element. I tried on 4" and 7" virtual devices with soft keyboard option.</p>
  
  <p>Here is the </p>
  
  <pre><code>main_activity_actions.xml
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  &lt;!-- Search, should appear as action button --&gt;
  &lt;item android:id="@+id/action_search"
      android:icon="@drawable/ic_action_search"
      android:title="@string/action_search"
      android:showAsAction="ifRoom" /&gt;
  &lt;!-- Settings, should always be in the overflow --&gt;
  &lt;item android:id="@+id/action_settings"
      android:title="@string/action_settings"
      android:showAsAction="never" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>Here is the <code>MainActivity.java</code> 's <code>onCreateOptionsMenu</code> method.</p>
  
  <pre><code> @Override
      public boolean onCreateOptionsMenu(Menu menu) {
  
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main_activity_actions, menu);
          return super.onCreateOptionsMenu(menu);
      }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/zjN81.jpg" alt="enter image description here"></p>
  
  <p>I want to learn what causes this problem.</p>