how to add spinner as an action view to the actionbar?

view story

http://stackoverflow.com – i want to add spinner into actionbar but i do not know how to do that. i do not want to use below code because i have some tabs . actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST); so i have to set actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); this is not possible duplicate of ... How can I add my spinner to the ActionBar? i read and searched but those are not my case. i use actionBar compact. (HowTos)