在android抽屜Drawer_layout開發(fā)中,需要關(guān)閉手勢滑動(dòng),來滑出彈出框
//禁止手勢滑動(dòng)
mDrawer_layout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
//打開手勢滑動(dòng)
mDrawer_layout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
在android抽屜Drawer_layout開發(fā)中,需要關(guān)閉手勢滑動(dòng),來滑出彈出框
//禁止手勢滑動(dòng)
mDrawer_layout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
//打開手勢滑動(dòng)
mDrawer_layout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);