在侧滑布局的里,做一些操作的时候希望点击某处,这个侧滑页面就会缩回去,有个closeDrawer()
示例代码:
DrawerLayout mDrawer_layout = (DrawerLayout) findViewById(R.id.drawer_layout3);
mDrawer_layout.closeDrawer(R.id.fg_addCity);
在侧滑布局的里,做一些操作的时候希望点击某处,这个侧滑页面就会缩回去,有个closeDrawer()
示例代码:
DrawerLayout mDrawer_layout = (DrawerLayout) findViewById(R.id.drawer_layout3);
mDrawer_layout.closeDrawer(R.id.fg_addCity);