How to add dividers between specific menu items?

后端 未结 7 1920
旧巷少年郎
旧巷少年郎 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 01:54

    You should use action layout

    
        
    
    

    and then the action layout can have the textview with divider.

    
    
        
    
        
    
    
    

    then you can add the click listener in code

提交回复
热议问题