开发者

Sliding Drawer From Top

I'm trying to get a sliding drawer to pull down from the top in my applica开发者_运维知识库tion, but I can't figure out a way to do it. Any help?


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/


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.)


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜