-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
drawer_menu actions #20
Comments
this in BaseActivity have worked for me
|
*Note *, Replace this on BaseDrawerActivity @Override protected void setupToolbar() { super.setupToolbar(); if (getToolbar() != null) { getToolbar().setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { drawerLayout.openDrawer(Gravity.LEFT); } }); vNavigation.setNavigationItemSelectedListener( new NavigationView.OnNavigationItemSelectedListener() { @Override public boolean onNavigationItemSelected(MenuItem menuItem) { int position = -1; switch (menuItem.getItemId()) { case R.id.news_feed: Snackbar.make(getCurrentFocus(), "Clicked!", Snackbar.LENGTH_SHORT).show(); break; } drawerLayout.closeDrawer(Gravity.LEFT); return false; } }); } } |
thank you let me do that On Wed, May 11, 2016 at 1:43 PM, Tinashe notifications@github.com wrote:
|
Hi, how i can add actions on click some elements into drawer menu?
Thanks
The text was updated successfully, but these errors were encountered: