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

How to change/hide menu items on bottomsheet Toolbar #42

Open
rakesh1988 opened this issue Mar 18, 2017 · 4 comments
Open

How to change/hide menu items on bottomsheet Toolbar #42

rakesh1988 opened this issue Mar 18, 2017 · 4 comments

Comments

@rakesh1988
Copy link

I tried to add mToolbar.getMenu().clear(); in init() of MergedAppBarLayoutBehavior. But It did not clear the menu items. is there something that I am missing?

@vit001
Copy link
Contributor

vit001 commented Mar 18, 2017 via email

@rakesh1988
Copy link
Author

rakesh1988 commented Mar 18, 2017

correct me if i am wrong... Activty/Fragment's onCreateOptionsMenu would change the toolbar that was set for the activity itself. In my layout xml i have 2 Toolbars. one for activity and one for BottomSheet. How will I change it for BottomSheet's toolbar?

@vit001
Copy link
Contributor

vit001 commented Mar 18, 2017 via email

@rakesh1988
Copy link
Author

Assuming that you are referring to the second toolbar. I tried this in oncreate of the activity. It did not change the title or inflate the menu. I am modifying the latest version of the repo.

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