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 ?
Way 1: Touch “Settings” -> “Display” -> “Navigation bar” -> “Buttons” -> “Button layout”. Choose the pattern in “Hide navigation bar” -> When the app opens, the navigation bar will be automatically hidden and you can swipe up from the bottom corner of the screen to show it.
Tapping on the icon opens up a side menu with a selection of various options and features. Here's an example of the hamburger icon used in the Samsung Galaxy Store app. By tapping on the icon in the top-left corner, you can access various menu options.
The hamburger icon is simply a symbol that has come to mean “menu.” Once you start looking for it, you'll see it everywhere.
if you are using ActionBarDrawerToggle
then you can add a line:
toggle.setDrawerIndicatorEnabled(false);
and opening
and closing
drawer you can write in your click event:
if (drawer.isDrawerOpen(GravityCompat.START)) {
drawer.closeDrawer(GravityCompat.START);
} else {
drawer.openDrawer(GravityCompat.START);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With