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 achieved?
On clicking the the top left button the page slide and the following screen is shown:
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:
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'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.
Can't comment on the answer given by @Paul Grime yet, anyway I've submitted on his github project the fix for the flicker problem....
I'll post the fix here, maybe someone needs it. You just need to add two lines of code. The first one below the anim.setAnimationListener call:
And the second one after app.layout() call:
Hope this helps :)
This is simple and elegant: https://github.com/akotoe/android-slide-out-menu.git
Snapshot:
I found a simplest way for it and its working. Use simple Navigation drawer and call drawer.setdrawerListner() and use mainView.setX() method in on drawerSlide method below or copy my code.
xml file
java file
Thank You