I need to hide the hamburger icon
This is my toolbar
I need to hide the default hamburger icon of navigation bar and load it from another button click.The navigation bar need to appear on the attachment icon click in my toobar and need to disappear when i click outside(anywhere).Can this be done ?
This answer is same as @Yupi as answered. I am answering this again because posting this here will be easy to look and understand. If you are using supportActionBar, just do this to hide the Hamburger Icon.
if you want to enable the Hamburger icon. Then
if you are using ActionBarDrawerToggle then you can add a line
and opening and closing drawer you can write in your click event
You can hide hamburger icon by this:
If you have added the attachment icon manually (As an
imageView
inside a Toolbar) :Or, if you've added as a Menu item :