Navigation Drawer: Add Titles to Groups, Not Items

后端 未结 4 2048
梦如初夏
梦如初夏 2021-02-04 01:47

I have a standard Navigation Drawer, pre-created by Android Studio and want to populate it with number of groups. I started with this:



        
4条回答
  •  野的像风
    2021-02-04 02:09

    You are right, it's not possible to give groups a title. The only option seems to be to wrap groups into and

    tags like this

    
    
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                
            
        
    
    
    

    Resulting in a navigation drawer menu like this

提交回复
热议问题