How to fix Android studio 3.5 navigation activity template onNavigationItemSelected not working

后端 未结 5 450
自闭症患者
自闭症患者 2020-12-16 23:16

I created a new navigation drawer activity from Android Studio 3.5 templates, but menu items are not clickable even though I\'m listening for NavigationItemSelected

5条回答
  •  情书的邮戳
    2020-12-17 00:01

    this problem is caused by the ordering issue of xml file from main content

    the default order:

    
    
    
    

    change to following order:

    
    
    
    

提交回复
热议问题