Questions tagged [drawer]
753 questions
217
votes
6 answers
disable the swipe gesture that opens the navigation drawer in android
I've been following the navigation drawer guide by Google and I'd like to add it to an Activity with tabs and gestures.
I'd like to disable the gesture to open the navigation drawer, does anyone have any idea how to do this?

user1627990
- 2,587
- 2
- 16
- 18
212
votes
13 answers
Same Navigation Drawer in different Activities
I made a working navigation drawer like it's shown in the tutorial on the developer.android.com website. But now, I want to use one Navigation Drawer, i created in the NavigationDrawer.class for multiple Activities in my Application.
My question is,…

MEX
- 2,664
- 5
- 22
- 28
52
votes
10 answers
Change Flutter Drawer Background Color
How can I change the background color of a flutter nav drawer?
There doesn't seem to be a color or background-color property.

AlexL
- 962
- 1
- 10
- 13
52
votes
4 answers
Android Navigation Drawer on top ActionBar
I'm trying to make the navigation drawer over the action bar when it was slide to the right like this app:
[Removed]
This is my main activity's layout:
…

lemycanh
- 827
- 1
- 11
- 14
42
votes
12 answers
How to get view from drawer header layout with binding in activity?
So this is my activity_main.xml:

RogerParis
- 1,549
- 1
- 13
- 24
40
votes
10 answers
How can I change Drawer icon in flutter?
The drawer has this default three horizontal bars as default icon but I want to change it to something else.
I have checked the possible options under the Drawer(), but no property seems to be attached to that.

lordvidex
- 3,581
- 3
- 17
- 25
20
votes
1 answer
Android: Navigation Drawer SubMenu: How to Collapsible navigation items
I have a Navigation Drawer with 10 options
Option #5 shoudl have another 7 options (like a sub menu) of some sort that is expandable/collapsible
How do I create a "Collapsible navigation items" like it is described here?

Eric Bergman
- 1,453
- 11
- 46
- 84
20
votes
2 answers
Can't change drawer icon for NavigationDrawer
I'm trying to implement the new NavigationDrawer provided since the last Android keynote.
I got everything up and running, the navigation drawer opens and closes when pressing on the icon on the top left corner.
But now I still have the arrow icon…

user2410644
- 3,861
- 6
- 39
- 59
19
votes
3 answers
Animate drawer icon into arrow on setDisplayHomeAsUpEnabled?
I'm using setDisplayHomeAsUpEnabled in order to show the arrow instead of the drawer "burger" icon but it's not getting animated or anything. Instead it shows the arrow drawable instantaneously.
Home screen: (Album 1)
When you tap a movie: (Album…

Vextil
- 191
- 1
- 1
- 8
18
votes
4 answers
What is the difference between the SlidingMenu library and the Android Navigation Drawer?
The SlidingMenu library is an excellent third party library and I've already used it for a long time. Now I know Android provides a new navigation pattern using Navigation Drawer. It looks like the sliding menu. So is there anyone who already uses…

XWang
- 797
- 2
- 7
- 20
17
votes
2 answers
Add (open/close) button to activity for (opening/closing) the navigation drawer
I am currently learning about the Navigation Drawer from the android site, and I am using their example http://developer.android.com/training/implementing-navigation/nav-drawer.html
What I want is to add a button in the MainActivity which would be…

Sartheris Stormhammer
- 2,534
- 8
- 37
- 81
14
votes
2 answers
android - open navigation drawer by clicking the app icon?
I use a navigation drawer in my app (the type of navigation that you open by sliding from the left side of the screen). Now, usually you can also open it by tapping the app icon, and when I looked it up, I found a whole bunch of code to add to your…

Martin
- 453
- 3
- 5
- 14
13
votes
3 answers
Android Remove Shadow On Navigation Drawer
See here what i mean
Hi, I'm using stock Navigation drawer v4 and i ask how can delete that background shadow when navigation drawer is open.
this is my code of NavigationDrawerFragment.java
public void setUp(int fragmentId, DrawerLayout…

Marco Aprea
- 349
- 2
- 13
12
votes
3 answers
Android: Import DrawerLayout cannot be resolved
I'm trying to import the classes required to use the new "Navigation Drawer" from…

Eric Bergman
- 1,453
- 11
- 46
- 84
10
votes
2 answers
iOS: Sliding UIView on/off screen
I'm working on an app where having a "drawer" on the left-hand side would be very beneficial. I'm doing some initial testing to see how I would best accomplish this, and I'm having some very basic trouble.
My Setup
1. I am using a single-view…

mbm29414
- 11,558
- 6
- 56
- 87