Questions tagged [slidingdrawer]

SlidingDrawer is an Android View Widget that hides content out of the screen and allows the user to drag a handle to bring the content on screen.

From official documentation of SlidingDrawer class:

SlidingDrawer hides content out of the screen and allows the user to drag a handle to bring the content on screen. SlidingDrawer can be used vertically or horizontally. A special widget composed of two children views: the handle, that the users drags, and the content, attached to the handle and dragged with it. SlidingDrawer should be used as an overlay inside layouts. This means SlidingDrawer should only be used inside of a FrameLayout or a RelativeLayout for instance. The size of the SlidingDrawer defines how much space the content will occupy once slid out so SlidingDrawer should usually use match_parent for both its dimensions.

Tag Usage:

441 questions
2
votes
1 answer

Non-dialog sub menus?

I've seen several instances of a menu with a "More ..." button that appears to open something like a list on a sliding drawer instead of the standard submenu popup dialog. Is this actually being done with a sliding drawer, or is there some menu…
Metallicraft
  • 2,211
  • 5
  • 31
  • 52
2
votes
1 answer

Sliding Drawer layout Problem in android

hi i have put Sliding drawer in my application but this takes Space like in below Image if drawer is open and if it is close then it looks like My layout is below
Dharmendra
  • 33,296
  • 22
  • 86
  • 129
2
votes
1 answer

Add a ListView Into a SlidingDrawer?

How do I inflate a ListView into a SlidingDrawer? Thnx for the input. The main.xml:
user742030
2
votes
1 answer

onClick event on a SlidingDrawer not triggered

I created a RelativeLayout containing an ImageView and a SlidingDrawer. I set an onClickListener on the ImageView and another one on the content part of the SlidingDrawer. When the SlidingDrawer is open and I click on its content part, the onClick…
jul
  • 36,404
  • 64
  • 191
  • 318
2
votes
4 answers

Open a SlidingDrawer via button

How can I open a SlidingDrawer using a button not attached to it? In other words, I like to open it w/o the handle.
user742030
2
votes
3 answers

Android: Slidingdrawer.lock() blocking touch input for the rest of the layout

I have an Activity with a viewFlipper and a slidingDrawer. The SlidingDrawer's Handler contains an extra button wich is clickable. The problem is, the extra button on the handler only registers onClick when the slidingDrawer is locked, and when the…
Ste
  • 369
  • 2
  • 5
2
votes
1 answer

Position of SlidingDrawer handle?

I would like to have two overlapping SlidingDrawers (spanning the whole application window) with their handles side by side so that the user can open both drawers easily. However, it seems that the handle is always positioned horizontally centered…
Christian Gawron
  • 852
  • 1
  • 6
  • 18
2
votes
1 answer

Space between handler and content in a SlidingDrawer

When I try to use a SlidingDrawer in the horizontal orientation I get a space between the handler and the content. Any idea how I can get rid of it? In the vertical orientation I do not get a space.
Mokus
  • 3,339
  • 1
  • 24
  • 30
2
votes
1 answer

Android SlidingDrawer how-to

I've looked in many places, but I cant find a decent tutorial on how to make a SlidingDrawer for my application. Say i already have an XML file, and i want to add a sliding drawer to it..i also want to add a textview and listview object, and some…
somanys21
  • 107
  • 2
  • 6
2
votes
1 answer

Android SlidingDrawer default state?

I'm currently having trouble with a SlidingDrawer. I want it to be closed when the application starts so it doesn't get in the way. However, it is determined that it will be open, despite putting slide.close() in the onCreate() of my activity. It…
Alex Curran
  • 8,818
  • 6
  • 49
  • 55
2
votes
2 answers

How to create a pull out menu as a new Activity

How do you create a pull out menu as a new Activity. Is it possible to have a button that you can pull out as in the Google's built in camcorder app and have that start a new activity? Does a button support pull out? If not, what does?
Namratha
  • 16,630
  • 27
  • 90
  • 125
2
votes
2 answers

I changed toolbar hamburger icon but it does not open drawer menu when I clicked

I am using android toolbar instead of action bar as you can see below inside code. I changed hamburger icon with what my clients want. But drawer menu does not open when I clicked on icon. Here is my code @Override protected void onCreate(Bundle…
2
votes
1 answer

DrawerLayout.openDrawer sometimes not working

I have a DrawerLayout that usually works perfectly. I am using a button that opens the drawer by calling this method: mDrawerLayout.openDrawer(mFragmentContainerView); As I said, everything works fine but sometimes when the activity comes back from…
Montaner
  • 522
  • 5
  • 16
2
votes
1 answer

Android Tabs inside sliding drawer

I want to create a navigation drawer that contains tabs in android, but I could not do anything. I want to add tabs (categories, favorites) to the navigation drawer.Is it posible? (eg. ios) mDrawerLayout = (DrawerLayout)…
settaratici
  • 310
  • 1
  • 7
  • 18
2
votes
1 answer

How to customize com.coboltforge.slidemenuexample library in android?

I need to implement this layout in my project. The sliding drawer works fine for me instead of, when i have customized the slidemenu.xml of com.coboltforge.slidemenuexample it stops working. Once the drawer has been set as shown by cliking the…