Reputation: 3475
I try to hide ActionBar in Navigation View by using getSupportActionBar().hide()
but it makes menu icon on top left dissapear too, like this :
I want it show like this :
Could someone give me some advice ?
Upvotes: 0
Views: 144
Reputation: 3475
I have just done it,for anyone need it, just create an ImageView and handle click event with this:
DrawerLayout drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
drawerLayout.openDrawer(Gravity.LEFT);
Upvotes: 0
Reputation: 178
Add a ImageButton and fix it's position to top left corner . And handle the click event of the button using OnClickListner ... Simple ...
Upvotes: 0
Reputation: 1255
No, you can't because the icon is part of ActionBar
. You can create ImageView
(or Button
, ...) and place it at the top-left position and handle click event or use transparent ToolBar
Upvotes: 1