Navigation drawer doesn't close

后端 未结 11 963
暖寄归人
暖寄归人 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:21

    private DrawerLayout mDrawerLayout;
    mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
    mDrawerLayout.closeDrawers();
    

    it works

提交回复
热议问题