Search code examples
androiduinavigationbarandroid-actionbarandroid-actionbar-compat

ActionBarCompat: Set Navigation Mode


I'm using ActionBarCompat in my project. The problem I have now is that I need a spinner to show in the actionbar. A standard ActionBar can use .setNavigationMode(ActionBar.NAVIGATION_MODE_LIST) but this is unavailable in the action bar compat code.

Is there a way around this? What are other options (besides a layout redesign.)


Solution

  • There is no way to do this in the code provided by ActionBarCompat.

    It provides an ActionBar in it's most basic form for use by all platforms.

    A better alternative is useing ActionBarSherlock. The setup very similar and more functionality is available out of the box. http://actionbarsherlock.com/