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
0
votes
1 answer

Monodroid DrawerLayout

I am not able to use DrawerLayout in my project. In my android sdk manager, I have upgraded the "Android SDK platform-tools" to the latest revision (Rev. 22.3) and the "Android SDK Built-tools ( Rev. 19.0.1 ) as suggested in this…
TheSoul
  • 4,906
  • 13
  • 44
  • 74
0
votes
1 answer

DrawerLayout Double Drawer lock right Drawer

i'm using a DoubleDrawer Layout. One Drawer from the Left and one from the right. In the left Drawer i have some Navigation stuff. On the right Drawer i have some detail Information. I wan't to lock the right Drawer from opening the drawer by the…
C3D1
  • 75
  • 1
  • 10
0
votes
3 answers

DrawerLayout: dismiss keyboard by tapping home icon in ActionBar

I'm using DrawerLayout in my app. I've attached ActionBarDrawerToogle to it. When keyborad is visible I still can call drawer menu. I don't want to. I want my app to behave like Youtube app so when keyboard appears there is no drawer toogle in…
Lingviston
  • 5,479
  • 5
  • 35
  • 67
0
votes
1 answer

NavigationDrawer and ViewPager in the same Activity in Android

I am trying to create a NavigationDrawer as well as having a ViewPager with sliding tabs in an activity using ActionBarSherlock. I have the tabs and I have created layouts for the view pager and the drawer layout. I know that what I have is that the…
0
votes
0 answers

DrawerLayout not able to resolve to a type

I have updated the Android support library using Android SDK manager -> install option to rev19. I am using Visual Studio IDE to build my android application. I am also referring to the following sample for implementing DrawerLayout but I could not…
0
votes
1 answer

make drawer layout some portion always visible in android

I am using drawer layout to make a drawer that moves from right to left. But i want to make some portion of drawer to be always visible on right side. Please help me how can i do this.
0
votes
1 answer

Launch application with webview

I'm developing an application composed by a webview with navigation drawer (using fragments), i'd like to start the application with the homepage of the site while now there's just a blank page.Is it possibile?Thanks in advance Activity…
0
votes
2 answers

Handle swipe and click differently for closing DrawerLayout

I have a DrawerLayout that contains a list. I want to disable the the swipe-close on it so the ways to close it would be clicking on the back button or clicking the inactive area of the drawer. Is there a good practice implementing this behavior?
Shlomi
  • 343
  • 5
  • 23
0
votes
2 answers

android.widget.FrameLayout cannot be cast to android.support.v4.widget.DrawerLayout

My application was working fine but when i try to add a side menu on left of my Main Class, I get error on line 75 and i don't understand, please help me. line 75: mDrawerLayout = (DrawerLayout)…
jeff7
  • 107
  • 3
  • 4
  • 12
0
votes
5 answers

How to handle Back button while using DrawerLayout in activity in android?

I am using DrawerLayout in my application. Now when I pressed on back button first of all it is closing DrawerLayout and need to click again on back button then it will redirect to previous screen. But I want to avoid this DrawerLayout closing on…
anddev
  • 3,144
  • 12
  • 39
  • 70
0
votes
0 answers

android drawerLayout multiple choice

I want to have a sliding drawer using drawerlayout, but I want to be able to choose multiple options from within the drawer. I'm thinking of using it to aid with filtering of a list of items. The filter will be a new activity that appears on top of…
Russ Wheeler
  • 2,590
  • 5
  • 30
  • 57
0
votes
1 answer

Open DrawerLayout, perform action, then close it

So I want to animate my DrawerLayout in such a way that it is opened, an item is added to the menu in it, then it is closed. I tried a great deal of things, but the problem is that there is no delay between the "Open" and "Close" commands (or at…
Elad Avron
  • 1,411
  • 1
  • 18
  • 28
0
votes
1 answer

How to prevent close the DrawerLayout onTouch of screen?

I had implement DrawerLayout in my application. Now if suppose I click on screen then the DrawerLayout is getting close. But now I want to implement some operations on onTouch. My question is how can I prevent the DrawerLayout to close onTouch. I…
anddev
  • 3,144
  • 12
  • 39
  • 70
0
votes
1 answer

Trying to create an app with an expandable list within a DrawerLayout

Trying to create an app with an expandable list within a DrawerLayout. I had the DrawerLayout working fine with just pulling the list from an array in strings.xml. Ever since I added the ExpandableListAdapter though it's been crashing, or even if it…
Scott B
  • 1
  • 1
0
votes
1 answer

Bottom item on the DrawerLayout

I'm trying to do the same thing @lnamdar asked in this question (Drawer layout with fixed menu item). I'm trying to get a better explanation on their solution. I'm trying…
cperes
  • 33
  • 2
  • 6