刷卡与第一面板部分可见的侧面板 [英] Swipe to side panel with first panel partially visible
问题描述
我不认为这些示例使用viewpager,但在视觉上,他们看起来有点像viewpager。
I don't think these examples use viewpager, but visually they look a little like viewpager.
请参阅的Evernote的设置:
See Evernote's settings:
的http://1.androidauthority.com/wp-content/uploads/howto/evernote-screenshots-120524.jpg
和掌上强制类型转换手持式控制面板:
And Pocket Casts' handheld control pane:
http://www.shiftyjelly.com/android/pocketcasts
基本上,一个面板是从左刷中,但previous面板的左边缘仍可见。
Basically, a panel is swiped in from left, but the left edge of the previous panel is still visible.
所以我的问题是,在一个例子特色此UI模式,你所看到的,还是这两个做出来全棉布,现在我必须这样做,太?
So my question is, is this UI pattern featured in an example you have seen, or did these two make it out of whole cloth and now I have to, too?
编辑为后人:
随着谷歌I / O 2013的,这是现在内置了Android系统。他们称之为导航抽屉: http://developer.android.com/培训/实施导航/ NAV-drawer.html
As of Google I/O 2013, this is now built into Android. They call it the Navigation Drawer: http://developer.android.com/training/implementing-navigation/nav-drawer.html
推荐答案
https://github.com / jfeinstein10 / SlidingMenu
该库可能帮助你。我认为这是你想要达到的目标。
This library might help you out. I think this is what you're trying to achieve.
修改
我已经更新了链接到另一个SlidingMenu库,但为2015年9月16日的我不会用此处引用反正库。谷歌提供了 DrawerLayout 在V4支持库来实现这一目标。抽屉里面,一个更标准的结构化的导航,设计支持库还提供了的 NavigationView 可以放置在DrawerLayout内并使用标准的菜单资源充气内包含的项目。这 SO 可以帮忙的实施细节。
I've updated the link to another SlidingMenu library but as of 2015/09/16, I wouldn't use the library referenced here anyway. Google has provided the DrawerLayout in the v4 support library to achieve this. Inside the drawer, for a more standard structured navigation, the design support library has also provided the NavigationView that can be placed inside the DrawerLayout and use standard menu resource to inflate the items contained within. This SO can help out with the details of the implementation.
这篇关于刷卡与第一面板部分可见的侧面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!