Navigation drawer doesn't close

后端 未结 11 950
暖寄归人
暖寄归人 2021-02-08 03:44

The navigation drawer in my app is not closing. I am using activities instead of fragments. When i click on any item in the listview, it opens other activities as i

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-08 04:12

    I was having the same problem.

    I used

    mDrawerLayout.closeDrawer(drawerListView);
    

    before starting my new activity. It beautifully slides the drawer back in.

提交回复
热议问题