title: Adding a 'Add Button' to the actionbar at the top when you already have tabs and a menu
body: <p>I'm trying to add an 'Add Item' button at the top in the action bar. (To the right of the App Icon and Title).</p>
  
  <p>Right under the action bar, I have two tabs that I can swipe between. I also have a menu XML file defined for the settings menu. </p>
  
  <p>I thought actionbar uses a menu XML as well. So I added a actionbar menu XML, but when I use </p>
  
  <pre><code>actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_SHOW_CUSTOM);
  actionbar.setCustomView(R.menu.actionbar);
  </code></pre>
  
  <p>my program crashes. I believe I'm doing this totally incorrectly.</p>
  
  <p>My actionbar XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;
      &lt;item android:id="@+id/item1" android:icon="@android:drawable/ic_menu_add"&gt;&lt;/item&gt;
  
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>I read on some tutorials that I'm supposed to add items to the actionbar and populate it via the OnCreateOptionsMenu function in mainActivity. But that's where my options menu is populated, not my actionbar.</p>