title: How to right-align a navigation dropdown in ActionBar?
body: <p>I've created a new project and had Eclipse create some skeleton code for an Activity with an ActionBar. I've removed the default menu that was also created (the "Settings" icon that shows on the right side).</p>
  
  <p><strong>Problem</strong>
  Now that there's no Settings menu in the ActionBar, I want my dropdown to align to the right.
  How is that possible ? </p>
  
  <p><strong>Screenshot</strong>
  <img src="https://i.stack.imgur.com/S1o4C.png" alt="enter image description here"></p>
  
  <p><strong>Code Sample</strong></p>
  
  <pre><code>public class Main extends FragmentActivity implements ActionBar.OnNavigationListener
  {
  
      @Override
      protected void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          // Set up the action bar to show a dropdown list.
          final ActionBar actionBar = getActionBar();
          actionBar.setDisplayShowTitleEnabled(true);
          actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
  
          // Set up the dropdown list navigation in the action bar.
          actionBar.setListNavigationCallbacks(
          // Specify a SpinnerAdapter to populate the dropdown list.
                  new ArrayAdapter&lt;String&gt;(getActionBar().getThemedContext(),
                          android.R.layout.simple_list_item_1,
                          android.R.id.text1, new String[] {
                                  getString(R.string.title_section1),
                                  getString(R.string.title_section2),
                                  getString(R.string.title_section3), }), this);
      }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu)
  {
      // no settings menu
      return false;
  }
  }
  </code></pre>