How to center action menu on toolbar

前端 未结 2 433
借酒劲吻你
借酒劲吻你 2020-12-09 23:00

I have an application with a split action bar loading an action menu.

I changed the actionbar for the new toolbar and replaced the split actionbar by an other toolba

2条回答
  •  醉酒成梦
    2020-12-09 23:21

    I've also been trying to find an answer to this question the past couple weeks. And the closest thing I have found takes advantage of the fact that the Toolbar is just a ViewGroup. All you need to do is create a menu_items layout that is just a LinearLayout with equally weighted menu items added. I know this isn't an ideal solution but I haven't found anyway to spread out the items while using the default menu.

        
    
            
    
            
    

提交回复
热议问题