How to add line divider for menu item Android

后端 未结 3 1810
慢半拍i
慢半拍i 2020-12-29 05:17

My menu item become bigger so that I want group them and make a line divider to separate each group. What should I do now ?

    

        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 06:06

    All you need to do is define a group with an unique ID, I have checked the implementation if group has different id's it will create a divider.

    Example menu, creating the separator:

    
    
    
        
    
    
    
        
    
    

    hope this helps

    UPDATE

    for menu item may be you can use this

        
        
    
    

    and actionLayout file will be

     
    
        
    
        
    
    
    

提交回复
热议问题