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
4
votes
2 answers

How to create sliding drawer in both sides opposite to one another?

I have added the code that working for right to left sliding perfectly but i want sliding from left to right also so check the layout and help me out.Here i have mentioned the layout properly for right to left ,Is it possible to get the Slider…
Janmejoy
  • 2,721
  • 1
  • 20
  • 38
4
votes
2 answers

Reducing sliding drawer velocity

I have included sliding drawer in my code. wanted to make it animate bit slower then the actual velocity. do anyone know how to reduce the velocity? thanks in advance..
Zombie
  • 1,965
  • 2
  • 20
  • 34
3
votes
2 answers

Android, SlidingDrawer

I've noticed that animateOpen(), animateClose() and animateToggle() are doing the same function, meaning that any one of them can replace the others. The only difference that I noticed was that the speed of the animation varies from one method to…
a fair player
  • 11,530
  • 9
  • 46
  • 48
3
votes
1 answer

Dim/Blur Background When SlidingDrawer Is Open

I'm looking for a way to dim/blur background when the slidingdrawer is open but I couldn't find. Now, my question is, is it possible?
GokcenG
  • 2,771
  • 2
  • 25
  • 40
3
votes
0 answers

Android : How to set Sliding Drawer topOffset/bottomOffset at runtime?

I came across this topOffset attribute of a Sliding Drawer. It seems pretty useful, but I would like to set it at runtime. Is this possible? I looked through the developer docs, couldn't find much.
Arnab Chakraborty
  • 7,442
  • 9
  • 46
  • 69
3
votes
1 answer

SlidingDrawer animation velocity

I'm new to Android programming and to stack overflow, and I need to slow down the animation speed of a SlidingDrawer in my app. I've already subclassed SlidingDrawer like this: import android.content.Context; import android.util.AttributeSet; import…
Justin Lewis
  • 1,261
  • 1
  • 15
  • 33
3
votes
4 answers

SlidingDrawer semi opened on start

I am working a piece of my app and I was wondering if it's possible to have a Sliding Drawer open partially instead of being fully closed so the user can peak at the text content before clicking the show more button which would be able to show the…
MR Mido
  • 1,618
  • 4
  • 25
  • 35
3
votes
6 answers

ClassCastException in Eclpse 3.5 and 3.6 when in Graphical Layout with a SlidingDrawer

Has anyone got the Graphical Layout working correctly in either Eclipse 3.5 or 3.6 when using a Sliding Drawer? I keep getting the following error in both: error! ClassCastException: com.android.layoutlib.bridge.MockView cannot be cast to…
EraserheadIRL
  • 1,061
  • 2
  • 12
  • 20
3
votes
1 answer

Android : is there a way to properly set a SlidingDrawer width and height to half screen?

I have to set a SlidingDrawer on the right side and on click it should not expand over the half screen. I saw many tutos and i managed to set it more or less correctly but it's currently pushing everything in the layout to the left. Here is my…
parser_failed
  • 697
  • 9
  • 20
3
votes
1 answer

Implementing sliding tabs in drawer fragment

Just need a workaround! I had already implemented drawer, now need to place sliding tabs in one of those fragments. Fragment Class: import android.app.Fragment; import android.os.Bundle; import android.support.annotation.Nullable; import…
3
votes
0 answers

Sliding menu: closed, half-opened and opened

in an android application, I need to do the following: I have a view, that acts like a menu, I can slide it from the bottom-up. However I want to have 3 states: closed, half-opened and opened. Please refer to this pic: The blue section is the…
Y2theZ
  • 10,162
  • 38
  • 131
  • 200
3
votes
1 answer

Android Menu coming from bottom like Google Drive

I have a floating action button and when the users taps on it I want a layout to be shown, animating from the bottom exactly like the Google Drive app (so not covering the whole screen). I read someone suggest the open source Umano's…
Stack Diego
  • 1,309
  • 17
  • 43
3
votes
1 answer

Make Custom Navigation drawer like You-Tube in android

Hello friends i wnat to make custom slidng drawer like you-tube in my application When user click on any item it should be show me like above image which i highlight so any idea how can i achieve this ?
Harshal Kalavadiya
  • 2,412
  • 4
  • 38
  • 71
3
votes
2 answers

How to create drawer navigation like this?

Hi guys, I wanna create the drawer navigation. I have read some docs, but it didnt work, so I will show u the picture that I want my drawer layout to look like this. Hope you can spend some to help me :)
3
votes
1 answer

First fragment to be added to the main activity when application starts up

Suppose I am creating an Android application which has a Navigation drawer and set of fragments. When user clicks on an option in the Navigation drawer the corresponding fragment is loaded. The application has only one activity (Main activity) and…
Sudara
  • 4,769
  • 3
  • 34
  • 39