Skip to content
New issue

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

Close Floating drawer after selecting the item #50

Closed
ajeett opened this issue May 30, 2017 · 1 comment
Closed

Close Floating drawer after selecting the item #50

ajeett opened this issue May 30, 2017 · 1 comment

Comments

@ajeett
Copy link

ajeett commented May 30, 2017

how to automatically Close Floating drawer after selecting the item

@mxn21
Copy link
Owner

mxn21 commented May 31, 2017

You can define a method in MainActivity:
public void closeMenu() {
if (mDrawer.isMenuVisible()) {
mDrawer.closeMenu();
}
}

and in MenuListFragment use : ((MainActivity)getActivity()).closeMenu() ;

@mxn21 mxn21 closed this as completed May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants