Questions tagged [drawerlayout]

Android's DrawerLayout acts as a top-level container for window content that allows for interactive "drawer" views to be pulled out from the edge of the window.

Android's DrawerLayout acts as a top-level container for window content that allows for interactive "drawer" views to be pulled out from the edge of the window. It is commonly known as Android Navigation Drawer.

As per the Android Design guide, any drawers positioned to the left/start should always contain content for navigating around the application, whereas any drawers positioned to the right/end should always contain actions to take on the current content. This preserves the same navigation left, actions right structure present in the Action Bar and elsewhere.

The DrawerLayout class is available in the Android Support Library (android.support.v4.widget.DrawerLayout).

Some Useful links - Official API Reference and Navigation Drawer Example

Tag Usage:

843 questions
-1
votes
2 answers

Listview inside Navigational Drawer Not responding to item click android

I am using DrawerLayout which has Listview When I click on the Listview item , it does not responds to the click ( not launching another activity ) protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub …
karthik kolanji
  • 2,044
  • 5
  • 20
  • 56
-1
votes
1 answer

Android - Easy/comfortable way to design DrawerLayout using Android Studio?

In my app I have implementer the DrawerLayout for one of the activities, and added a listView in the center of the activity. In order to add items (Buttons and textView etc..) I add them manually by editing the XML layout file (by adding raw…
Alex
  • 1,982
  • 4
  • 37
  • 70
-1
votes
1 answer

Android DrawerLayout listen for user dragging?

I am looking for a way to listen for the user opening the DrawerLayout by dragging his finger, so I can read its current x and y values. Something more 'in-depth' than simple open and close events from a DrawerListener. My idea would be to implement…
A. Steenbergen
  • 3,360
  • 4
  • 34
  • 51
-1
votes
2 answers

Android DrawerLayout with ExpandableListView prob with ChildClickListener

I am using following code for DrawerLayout menu and sub-menu. Some menu do not have sub-menu. For them I want to catch the menu click action, otherwise I want to catch the sub-menu click…
dev_android
  • 8,698
  • 22
  • 91
  • 148
-1
votes
1 answer

drawer layout lags in complex view

I made a view similar to tinder like Cards Swiping(this layout is little complex). My drawer layout is working perfectly on every fragment except this one(Swiping Card view). When i am on this fragment and when i try to open drawer layout then it…
Avinash Kumar Pankaj
  • 1,700
  • 2
  • 18
  • 27
-1
votes
3 answers

why does DrawerLayout are not working on sony ericson xperia API 8 - 2.3?

I'm develop some application with a slider menu with DrawerLayout and ActionBarDrawerToggle. everything is going fine but when I'm trying to run this app in "xperia arc" device, the app crashes and not loaded! i have many devices to check the app on…
ANDROBIB
  • 21
  • 5
-1
votes
1 answer

how to check if DrawerLayout is supported?

I'm developing some app with a DrawerLayout for many kinds of devices, now.. when the app installed in old api the app crashes because DrawerLayout is not supported or something. how can i get in my java code what is the current device for handle…
ANDROBIB
  • 21
  • 5
-1
votes
2 answers

How to get a shadow effect at end of the ListView in android?

I am trying to get a shadow effect at the end of my ListView which is placed inside a DrawerLayout. I have a png image for the shadow effect. I just want to know how to place it. I tried creating a view and placing this image as a background image,…
anu_r
  • 1,602
  • 7
  • 30
  • 61
-2
votes
1 answer

What can I do to fix a null pointer error in Android for toolbar?

Even after I had ensured that the toolbar id is well linked in the main activity where I declared the Toolbar, it still does push an error. I am trying to create and understand a navigation drawer in android studio. I have once done this navigation…
-2
votes
2 answers

Why is getcontext() null only in one method?

Hello I´m making a map app that is inside a drawer activity in Android Studio, everything was going well untill I started to play with fragments since I'm pretty new in android I don't really know whats going on or what is the cause of the issue. I…
Daniel
  • 21
  • 1
  • 6
-2
votes
1 answer

Android Drawer Layout with Fragments

I am using the preset Android Drawer layout. Each selection in the drawer launches a different fragment into the main activity area. My app is used to connect to a SQL server, so I have Username/Password EditTexts and a login button sitting on the…
-2
votes
1 answer

Me recycler view comes on top of the navigation drawer

My recycler view is overlapping my navigation drawer. The following is my code to the layout-
-2
votes
2 answers

Display username and user email on Navigation drawer header

I've created BaseActivityto display navigation drawer on all activities. The activities that need navigation extends from BaseActivity. I tried to change the value of the textviews in the navigation drawer to display username and user email. But I…
-2
votes
1 answer

android how to create a drawer layout in right of screen

hi I want to create a drawer layout in right of the screen, I want to put a button in right of the top screen and when click it I want to open a drawer, I tried to use ActionBarDrawerToggle but this can open a drawer using the icon of the app(this…
Malo
  • 1,232
  • 2
  • 17
  • 28
-2
votes
2 answers

is it possible to have sub menus in the sliding menu?

Hi i have implemented a Android sliding menu using navigation drawer with help of WWW.androidhive.info tutorial. now my question is , is it possible to have sub menus in the sliding menu? i mean for example assume i have four options in sliding…
1 2 3
56
57