The new Facebook application and its navigation is so cool. I was just trying to see how it can be emulated in my application.
Anyone has a clue how it can be achie
I think that library does not mentioned:
jfeinstein10 / SlidingMenu
github url:
https://github.com/jfeinstein10/SlidingMenu
I've just implemented similar view for my own project. You can check it here
Here is screen of sample application based on library I wrote:
It is easy to use this custom view as element of XML layout. Here is example:
<shared.ui.actionscontentview.ActionsContentView
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:actions_layout="@layout/actions"
app:content_layout="@layout/content" />
I you will have any questions about usage of ActionsContentView library I can write a small article at projects Wiki.
Some advantages of this library:
There is one limitation:
Best regards, Steven
I've been playing with this the past few days and I've come up with a solution that's quite straightforward in the end, and which works pre-Honeycomb. My solution was to animate the View I want to slide (FrameLayout
for me) and to listen for the end of the animation (at which point to offset the View's left/right position). I've pasted my solution here: How to animate a View's translation
With android support package revision 13( may 2013), there is DrawerLayout for creating a Navigation Drawer that can be pulled in from the edge of a window. And, navigation drawer is a design pattern now.
v4 support library
navigation drawer design pattern
As a part of my Android Common Library (ACL) I implemented own SideBar. Main advantages:
Source code: https://github.com/serso/android-common/tree/master/views/src/main/java/org/solovyev/android/view/sidebar
Usage: https://github.com/serso/android-common/blob/master/samples/res/layout/acl_view_layout.xml
I'm going to make some bold guesses here...
I assume they have a layout that represents the menu that is not visible. When the menu button is tapped, they animate the layout/view on top to move out of the way, and simply enable the visibility of the menu layout. I have not thought about this causing any sort of z-index issues in the views, or how they control that.