title: Android ActionBar - Push custom view to bottom of screen
body: <p>I've got a split ActionBar, and I'm trying to add functionality almost identical to google play's 'Now playing'..</p>
  
  <p>I can get menu items to appear at the bottom of the screen, using the onCreateOptionsMenu, but I can't seem to get a custom view to appear at the bottom of the screen when using actionBar.setCustomView. The custom view just sits underneath the top ActionBar.</p>
  
  <p>Does anyone know how to force the customview to the bottom, or to add custom views to the onCreateOptionsMenu?</p>
  
  <p>Here are the snippets of my code:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      ActionBar actionBar = getActionBar();
      actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
      actionBar.setDisplayShowTitleEnabled(true);
      actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
  
      //Custom view to add
      actionBar.setCustomView(R.layout.albumitem);
              //This view shows up just under the top actionbar at the moment,
                despite menu items being at the bottom
  </code></pre>
  
  <p>The menu options code: (These are showing down the bottom where I'd like my custom view to be)</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
      new MenuInflater(this).inflate(R.menu.option_menu, menu);
  
      return (super.onCreateOptionsMenu(menu));
  }
  </code></pre>
  
  <p>I believe that the now playing menu at the bottom of the google play music app is a custom view inside a split action bar:</p>
  
  <p><img src="https://i.stack.imgur.com/sI1a4.jpg" alt="Google Play Music"></p>