title: ActionBar Not Showing Icons, Android Studio
body: <p>I recently moved from eclipse to android studio.
  while importing my project to android studio, i faced a problem with action bar icons not being displayed when running on my galaxy s3.</p>
  
  <p>this is the xml code</p>
  
  <pre><code>&lt;menu xmlns:tools="http://schemas.android.com/tools"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      tools:context=".StartingNowHere"&gt;
  
      &lt;item
          android:id="@+id/menu_item_share"
          app:showAsAction="ifRoom"
          android:icon="@drawable/ic_action_share"
          android:title="@string/Share"/&gt;
  
      &lt;item
          android:id="@+id/ShopCart"
          android:icon="@drawable/shopping"
          app:showAsAction="ifRoom"
          android:title="@string/MyCart"/&gt;
  
      &lt;item
          android:id="@+id/GoHome"
          android:icon="@drawable/ic_home1"
          app:showAsAction="ifRoom"
          android:title="@string/nowhome"/&gt;
  
  &lt;/menu&gt; 
  </code></pre>
  
  <p>when using the preview option in the android studio, i can see those 3 item displayed on the virtual preview device.</p>
  
  <p><img src="https://i.stack.imgur.com/2akXo.png" alt="enter image description here"></p>
  
  <p>this is the java part of the code, in this code i made a Toast to see if it gets processed
  and it did . </p>
  
  <pre><code>@Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.main, menu);
          Toast.makeText(getApplicationContext(),"test",Toast.LENGTH_LONG).show();
          return true;
      }
  
  @Override
      public boolean onPrepareOptionsMenu(Menu menu) {
          // if nav drawer is opened, hide the action items
          boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);
          //menu.findItem(R.id.action_settings).setVisible(!drawerOpen);
          return super.onPrepareOptionsMenu(menu);
      }
  </code></pre>
  
  <p>note: this code as it is works fine on eclipse, when i imported the project into android studio, the action bar icons stopped showing .</p>