Navigation Drawer: Add Titles to Groups, Not Items

后端 未结 4 2047
梦如初夏
梦如初夏 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:15

    You also required to have an outer group with android:checkableBehavior="single" so that no two item is selected one from First Category and other from Second Category. Here is the working code.

    
    
    
    
        
            
                
    
                
            
        
    
    
        
            
                
    
                
            
        
    
    
    
    

提交回复
热议问题