Search code examples
androidandroid-actionbaractionbarsherlock

Customizing ActionBar Sherlock


I customize my action bar to be equal to Google Maps. I would like to add an icon on my list navigation.

enter image description here


Solution

  • The contents of list navigation is controlled by the SpinnerAdapter that you supply to setListNavigationCallbacks(). You should be able to create a SpinnerAdapter that uses icons and labels for the drop-down view, by overriding getDropDownView() and inflating/formatting the rows as you see fit.