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

Sliding menu locks touch event on upper view

I'm trying to use Sliding Menu in my application. On my Sony Xperia S it works very nice, but when I try to launch app on HTC Desire HD, menu opens perfect by gesture, but other touch events are blocked and top view (ViewPager, sliding menu is…
Zakharov Roman
  • 739
  • 3
  • 13
  • 31
9
votes
4 answers

Add button to a SlidingDrawer handle?

I've been working on this for a while. The Idea started simple, I wanted a button on a SlidingDrawer handle to allow the user to view settings specific to the content of the drawer. So I made a layout with a button off to the side and set it as the…
ahodder
  • 11,353
  • 14
  • 71
  • 114
9
votes
8 answers

How do I close the keyboard when the navigation drawer opens?

I have added a navigation drawer to my application. So far everything else works well but I am having an issue where when the navigation drawer opens the keyboard is not closed. The navigation drawer is the main activity and then each page opened…
blazingwolf
  • 251
  • 3
  • 8
8
votes
1 answer

TabLayout and ViewPager -Tabs doesn't work after swiping between sliding drawer items

TabLayout and ViewPager - Click on tabs doesn't work after swiping between sliding drawer item. I work on app that have Sliding drawer and Tablayout. I refer this tutorials For Sliding Drawer and For TabLayout. Inside Sliding Drawer TaskList…
8
votes
6 answers

Android Navigation view: Scroll the menu items only issue

I want to scroll only the menu items of the navigation view but it also scroll the header with it. Please any body tell me how to achieve this... Here is my code: activity_main.xml
7
votes
1 answer

Background colour of sliding drawer

I am currently working on an android project and making use of the SlidingDrawer but I am having a problem with changing the background colour. By default the SlidingDrawer appears to be transparent so when it is slid up over the content it is…
Boardy
  • 35,417
  • 104
  • 256
  • 447
7
votes
3 answers

LinearLayout@422725b0 is not a sliding drawer

Hi I have been going crazy with this. There are several questions out there but none have seems to fix my problem. I am getting an error when ever I try to style a drawer…
6
votes
3 answers

Change how SlidingDrawer responds to trackball or cursor

(Please note that the behavior described in this question only appeared because of something else seemingly unrelated we were doing. See the accepted answer.) We have an Android activity with a GridView and a SlidingDrawer inside of a…
Robert Tupelo-Schneck
  • 10,047
  • 4
  • 47
  • 58
6
votes
1 answer

Open Percentage of SlidingDrawer in Android

I am trying to determine the "open" percentage of a SlidingDrawer in Android. It seems that the drawer only has onOpen, onClose and onScroll Listeners. OnScroll only provides methods for determining when scroll has ended and when scroll has…
citizen conn
  • 15,300
  • 3
  • 58
  • 80
6
votes
1 answer

How can a SlidingDrawer be animated?

I try to open/close my slidingdrawer with animateOpen() and animateClose(), but it seems it opens and closes instantaneously, like open() and close(). What's wrong? I've seen that SlidingDrawer can't be customized (can't be animated with custom…
jul
  • 36,404
  • 64
  • 191
  • 318
6
votes
1 answer

Issue with Sliding Drawer and Animations

I am working on a project where I should not use any XML file and sliding Drawer is must. But I found that Sliding Drawer is not possible through java coding, For this reason I started working on animations where a layout should move Up and Down…
Hummer
  • 811
  • 1
  • 6
  • 14
6
votes
2 answers

Sliding drawer equivalent in iOS

After wasting lot of time searching, I am finally posting this question, hoping I get an answer. I want to have a widget in iOS, which has the similar functionality of Sliding Drawer in Android. (Like the bar at the bottom, and on pulling it, it…
nithinreddy
  • 6,167
  • 4
  • 38
  • 44
5
votes
3 answers

SlidingDrawer hidden by image in SurfaceView

I have both a SlidingDrawer and a custom SurfaceView that renders an image. I have just tried to drag the SlidingDrawer up and in doing so have discovered that it goes behind the image in the SurfaceView and is completely hidden. As you can imagine…
Richard Lewin
  • 1,870
  • 1
  • 19
  • 26
5
votes
1 answer

Scroll view not scrolled inside of Sliding drawer

I have a layout of framelayout and inside of this there are 2 child view, Sliding drawer and listview. Inside of the sliding drawer I need a scroll view but when I run it scroll view can not be scrolled. Anyone has the same problem before ? This is…
mrhands
  • 1,473
  • 4
  • 22
  • 41
5
votes
2 answers

how to make flutter drawer above bottom navigation

I have a simple drawer in Flutter project and I want to make the drawer to be always above bottom navigation bar when ever the user slide/open. I play around with my code but can't find any solution yet. import…
1
2
3
29 30