title: Fragments and ActionBar
body: <p>I have 4 fragments which have different Actionbar (some items) but they have the same dropdown navigation. I've tried to covered some items but the spinner has been moved to the left. I need it on the right. </p>
  
  <p><a href="http://i.stack.imgur.com/DHxhO.jpg" rel="nofollow">screen</a>
  My code in one of the fragment:</p>
  
  <pre><code>@Override
  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
      super.onCreateOptionsMenu(menu, inflater);
  
      menu.findItem(R.id.action_gps).setVisible(false);
      menu.findItem(R.id.action_filter).setVisible(false);
  }
  </code></pre>
  
  <p>My menu.xml</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
  &lt;item
      android:id="@+id/spinner"
      android:layout_gravity="left"
      app:actionViewClass="android.widget.Spinner"
      app:showAsAction="always" /&gt;
  
  &lt;item
      android:id="@+id/action_search"
      android:icon="@drawable/m_glass"
      app:actionViewClass="android.support.v7.widget.SearchView"
      app:showAsAction="always" /&gt;
  
  &lt;item
      android:id="@+id/action_filter"
      android:icon="@drawable/funnel"
      app:showAsAction="always|collapseActionView" /&gt;
  
  &lt;item
      android:id="@+id/action_gps"
      android:icon="@drawable/gps"
      app:showAsAction="always|collapseActionView" /&gt;
  </code></pre>
  
  <p></p>