Navigation Drawer closes on click

前端 未结 1 1803
青春惊慌失措
青春惊慌失措 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)
提交回复
热议问题