How to change the position of menu items on actionbar

后端 未结 4 1132
无人共我
无人共我 2021-02-07 14:51

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

4条回答
  •  误落风尘
    2021-02-07 15:22

    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.

提交回复
热议问题