We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: