Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide default hamburger icon of Navigation view android

I need to hide the hamburger icon

enter image description here

enter image description here

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 ?

like image 858
Amal p Avatar asked Nov 30 '17 11:11

Amal p


People also ask

How do I hide the navigation icon on my Android?

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.

What is the hamburger icon on Samsung phone?

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.

What is the hamburger icon on Google Maps?

The hamburger icon is simply a symbol that has come to mean “menu.” Once you start looking for it, you'll see it everywhere.


1 Answers

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);
}
like image 150
Vivek Barai Avatar answered Oct 04 '22 21:10

Vivek Barai