Questions tagged [navigation-drawer]

Navigation Drawer in a mobile application is the side panel which slides out from the edge of the screen and displays the navigation menu of the application. Use this tag for programming questions related to navigation drawers only. General UX questions and other opinion based questions related to navigation drawers are not on topic for Stack Overflow.

Navigation Drawer in Android

The navigation drawer is commonly used as a "slide-in" navigation menu in Android applications. It slides in from the edge of the screen and displays a list of the application's main navigation options.

The drawer slides on top of the content instead of the content sliding away. With this, one can access any top level content from anywhere in the app and allows you to create a flatter navigation structure. It also has an action bar at the top. Lower versions also support it through support library.

Documentation

  • Design docs can be found here.
  • Developer docs can be found here.
  • DrawerLayout API reference can be found here.

Related tags:

5793 questions
2
votes
2 answers

Roman Nurik's WizardPager inside Fragment

I have a FragmentActivity with different Fragments inside which can be switched through a NavigationDrawer. Roman Nurik's original code was written with a FragmentActivity but I need it inside a Fragment... This is my Activity (shortened): public…
2
votes
2 answers

How can I open Drawer Layout moving all the view and not just slide over?

How can I open Drawer Layout moving all the view and not just slide over? The idea would be to make the menu like Facebook and not like GMail, for example. I've been looking for information and haven't found anything. It can be done? It's possible…
pgarriga
  • 610
  • 3
  • 8
  • 22
2
votes
2 answers

How do you change the font of the list on a navigation drawer?

There's no TextView for me to setType in the Activity and setting it through a custom class and XML is a real memory drag so is there another way?
Thiago
  • 746
  • 1
  • 10
  • 22
2
votes
1 answer

The ListView Items in my navigation drawer are there but I can't see the list

The list is there and it goes to whatever activity I send it to but the list the names on the list don't show. I've changed the color of the font and the drawer background and it doesn't show. The item gets highlighted alright and it redirects to…
Thiago
  • 746
  • 1
  • 10
  • 22
2
votes
1 answer

Can I add more than a listview to the Navigation Drawer?

Good Day, I am trying to create a Navigation Drawer with ListView and few more views. My issue is when i try to click on the other view the click doesn't register Can you please tell me if i can create a complex view structure as the navigation…
Mustafa ALMulla
  • 870
  • 2
  • 10
  • 23
2
votes
0 answers

Handle click events on the NavigationDrawer

By using the DrawerLayout I discovered, that a click on the Drawer View is not handled by itself, if no View is clicked. The Content View of the Drawer will handle that click event insteed. To be more specific: The DrawerLayout has 2 childs the…
Steve Benett
  • 12,843
  • 7
  • 59
  • 79
2
votes
2 answers

Navigation Drawer overlaps over ActionBar Navigation Tabs Content

ScreenShot As it is visible in the above image , when the Navigation Drawers slides open , the content present in the Tab overlaps over it Code Fragment2.java -- The Fragment that is shown in the Tab import android.os.Bundle; import…
Prayag Verma
  • 5,581
  • 3
  • 30
  • 56
2
votes
1 answer

Navigation drawer - how to define the view hierarchy

My android application is enabled with navigation drawer which works fine with the top level views. Now, when I am navigating the lower level view I want the logo to appear with the up arrow to reach the home, I want the navigation drawer to be…
Mukesh Bhojwani
  • 2,014
  • 4
  • 20
  • 35
2
votes
1 answer

drawer indicator with ActionBar compat

I have an application that is using the ActionBarCompat library as well as the NavigationDrawer support library. I have managed to set up ActionBarDrawerToggle to get the drawer indicator on ICS+ devices, but it doesn't automatically enable it on…
1
vote
0 answers

Bottom Tab Bar opens and closes drawer menu

what I'm trying to achieve is the ability to open and close the drawer menu from within the bottom tab bar. Currently, my bottom tab bar code looks as follows: function BottomTabNavigator() { return (
1
vote
1 answer

Open Mobile menu drawer with custom button click

I added a sticky bottom menu which will be visible only on mobile devices. Here is the complete code of the widget :