Navigation Drawer closes on click

前端 未结 1 1780
青春惊慌失措
青春惊慌失措 2020-11-27 23:24

I have implemented a Navigation Drawer but I am having some trouble getting it to function properly. When I click on position 1 or 2, it is not launching the new fragment.<

相关标签:
1条回答
  • 2020-11-27 23:51

    I did not realize this but the main container must come before the nav drawer. I moved the ListView for the nav drawer to the bottom of my activity_main.xml and viola, it works!

    0 讨论(0)
提交回复
热议问题