Android Menu: Two single-checkable groups in the same menu

后端 未结 2 1317
無奈伤痛
無奈伤痛 2021-01-18 14:22

My xml code is:


    
    

        
2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-18 15:05

    You just need to add unique IDs to each of the group items in the xml file.

    
        android:checkableBehavior="single">
        
        
    
    
    
        android:checkableBehavior="single">
        
        
    
    

提交回复
热议问题