更新时间:2021-09-28 22:03:39
你应该使用:
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
它对我有用,打开抽屉的滑动被禁用.
It worked for me, the swipe to open the drawer was disabled.
如果仍然无法正常工作,请查看此处提供的答案.
If it still won't work, check out the answer provided here.