Android的rawerlayout侧滑触发事件缩回去

在侧滑布局的里,做一些操作的时候希望点击某处,这个侧滑页面就会缩回去,有个closeDrawer()
示例代码:

DrawerLayout  mDrawer_layout = (DrawerLayout) findViewById(R.id.drawer_layout3);
mDrawer_layout.closeDrawer(R.id.fg_addCity);

猜你喜欢

转载自blog.csdn.net/ShiXinXin_Harbour/article/details/113392749