I'm trying to get a sliding drawer to pull down from the top in my application, but I can't figure out a way to do it. Any help?
Asked
Active
Viewed 4,235 times
3 Answers
8
The built in sliding drawer is not that flexible, your best bet is to extend it and modify its behavior, or take a look at this http://code.google.com/p/android-misc-widgets/

Faisal Abid
- 8,900
- 14
- 59
- 91
-
Ironically, I've already tried using that one, but it uses an old SDK function with R.styleable which is deprecated now, so I don't know how to get it working. Are there any examples with this actually working that are with a newer SDK version? – Kleptine Feb 12 '10 at 01:29
-
Alright, I got it working. I had to use built in methods for grabbing the attributes. – Kleptine Feb 12 '10 at 02:34
-
I used this sample with making no changes in 2.1, 2.2, and now 2.3 sdks – Nathan Schwermann Dec 11 '10 at 05:31
0
I have created a complete replacement for SlidingDrawer. It can slide from any direction and I find that it greatly outperforms the original. http://www.github.com/kedzie/DraggableDrawers

mark.kedzierski
- 663
- 4
- 10
0
I had to do the same for one of my projects and I ended up writing my own widget for this. I called it SlidingTray is now part of my open source Aniqroid library. It allows sliding from all four corners and feel free to modify the code as your like.
http://aniqroid.sileria.com/doc/api/ (Look for download options to get it)
(Disclosure: I am the maintainer of the project.)

Sileria
- 15,223
- 4
- 49
- 28
-
2Posting the same answer multiple times is not the best way to make this site better. If you find that the same question has been asked multiple times, please flag them as duplicates using the "flag" link just below the question. This will allow moderators to merge the questions and make the end result better. – Mat Aug 28 '11 at 21:16