Questions tagged [drawer]

658 questions
209
votes
12 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,487
  • 5
  • 17
  • 23
202
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,437
  • 2
  • 13
  • 18
51
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
  • 817
  • 1
  • 10
  • 14
38
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
  • 762
  • 1
  • 9
  • 13
36
votes
12 answers

How to get view from drawer header layout with binding in activity?

So this is my activity_main.xml:
RogerParis
  • 1,271
  • 1
  • 11
  • 24
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,693
  • 6
  • 35
  • 57
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
  • 192
  • 1
  • 1
  • 8
19
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,291
  • 10
  • 39
  • 78
18
votes
5 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. PS: I am a beginner in Flutter.
lordvidex
  • 1,906
  • 2
  • 8
  • 16
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
  • 679
  • 2
  • 7
  • 19
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,366
  • 7
  • 31
  • 71
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 Hoffmann
  • 432
  • 3
  • 5
  • 12
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,291
  • 10
  • 39
  • 78
11
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
  • 321
  • 2
  • 12
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,300
  • 6
  • 52
  • 82
1
2 3
43 44