Open destinyd opened 10 years ago
MenuDrawer mMenuDrawer = MenuDrawer.attach(this, MenuDrawer.Type.BEHIND, Position.TOP, MenuDrawer.MENU_DRAG_WINDOW); mMenuDrawer.setTouchMode(MenuDrawer.TOUCH_MODE_FULLSCREEN);
You can see this.
in MenuDrawer
@Override protected boolean fitSystemWindows(Rect insets) { if (mDragMode == MENU_DRAG_WINDOW) { mMenuContainer.setPadding(0, insets.top, 0, 0); } return super.fitSystemWindows(insets); }
this code control it,
I change it to
@Override protected boolean fitSystemWindows(Rect insets) { if (mDragMode == MENU_DRAG_WINDOW) { // mMenuContainer.setPadding(0, insets.top, 0, 0); // fix actionbar title big ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) this .getLayoutParams(); int top = params.topMargin + insets.top; int bottom = params.bottomMargin + insets.bottom; int left = params.leftMargin + insets.left; int right = params.rightMargin + insets.right; params.setMargins(left, top, right, bottom); return true; } return super.fitSystemWindows(insets); }
It work for me. But i don't know what error it will cause.
You can see this.
in MenuDrawer
this code control it,
I change it to
It work for me. But i don't know what error it will cause.