简体   繁体   English

从顶部滑动抽屉

[英]Sliding Drawer From Top

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? 有帮助吗?

内置的滑动抽屉不是那么灵活,最好的办法是扩展它并修改它的行为,或者看看这个http://code.google.com/p/android-misc-widgets/

I have created a complete replacement for SlidingDrawer. 我已经为SlidingDrawer创建了一个完整的替代品。 It can slide from any direction and I find that it greatly outperforms the original. 它可以从任何方向滑动,我发现它大大优于原始方向。 http://www.github.com/kedzie/DraggableDrawers http://www.github.com/kedzie/DraggableDrawers

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. 我称之为SlidingTray现在是我的开源Aniqroid库的一部分。 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) http://aniqroid.sileria.com/doc/api/ (寻找下载选项来获取它)

(Disclosure: I am the maintainer of the project.) (披露:我是该项目的维护者。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM