How to add dividers between specific menu items?

后端 未结 7 1902
旧巷少年郎
旧巷少年郎 2020-12-03 01:35

Background

I have a menu item in the action bar (toolbar actually) that when clicked, shows a list of items to choose from, similar to radio-buttons:



        
7条回答
  •  自闭症患者
    2020-12-03 02:02

    Super simple solution that worked out for me:

    Define a drawable for the background:

    
    
    
        
        
    
    
    

    then in Styles use the background: