Is there a standard way to add dividers between action bar items in Android 3.0?

前端 未结 3 1813
花落未央
花落未央 2020-12-08 17:20

I have a slight problem trying to customise the look of the action bar in my app. I want to be able to have the pixel wide dividers to group action bar items that you see in

3条回答
  •  我在风中等你
    2020-12-08 17:40

    When Google released the 3.0 SDK I got a quick demo app to see how the ActionBar works and just looking back at it, if I use Text Items without Icon drawables, then I get automatic dividers drawn.

    My menu.xml file is like this:

    
      
      
      
      
    
    

    Maybe this won't work with icons??

    Or thinking about it, maybe the size of the icon has an effect?

提交回复
热议问题