I\'m developing one application in which I have to add a custom layout on actionbar. Adding the custom layout is done, but when I\'m adding the menu items on actionbar my custom
Just use orderInCategory
in your xml file and it will order from less number to greater (from left side of your action bar). Such as:
Even though, Refresh item is coming first in xml file, it won't be first. But Search icon from left to rigth in your action bar will be first according to its orderInCategory attribute.