Android 如何制作侧边栏菜单
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10480049/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to make a sidebar menu
提问by maxsoulard
I'm looking for a way to develop a menu which could be visible by sliding on the left of the current screen. One example is the mobile version of Firefox, when you slide on the left, you can access to the current tabs navigation, but the main page is still visible. It is called a sidebar I think :
我正在寻找一种开发菜单的方法,该菜单可以通过在当前屏幕左侧滑动来显示。一个例子是移动版的火狐浏览器,当你向左滑动时,可以访问当前的标签导航,但主页仍然可见。我认为它被称为侧边栏:
One possible way to do that is to use ViewFlipper, I guess, but maybe is there an easier and more efficient possibility ? And I'm afraid that handling scrolling horizontally and vertically could be a bit difficult...
一种可能的方法是使用 ViewFlipper,我猜,但也许有更简单、更有效的可能性?而且我担心处理水平和垂直滚动可能有点困难......
Thanks for any answers,
感谢您的任何答案,
Maxetx.
马克西特。
采纳答案by blessenm
回答by liruqi
You may try out SlidingMenu. There is example in lib.
你可以试试SlidingMenu。lib中有例子。