How to change the position of menu items on actionbar
问题 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 layout changes it's position from right of the actionbar to center of the actionbar. Below is the image what I have achieved so far. I want something like this on the actionbar. Custom layout(yellow button) at the right most part of actionbar and menu items in the middle. Adding my code to achieve this custom layout