Home » Android » android – Side navigation menu like Facebook app

android – Side navigation menu like Facebook app

Posted by: admin April 23, 2020 Leave a comment

Questions:

I’m looking for something similar to what the new Facebook app has implemented for the Android/ios mobile applications. I am referring to a side navigation menu which opens with a finger movement. Something like this

Is there any library or example where I can check?

Thank you very much.

How to&Answers:

Use SideNavigationView for side menu like facebook. But you will need a library for this which you can download from here https://github.com/johnkil/SideNavigation“.

Code for using it is:

SideNavigationView  sideNavigationView;
sideNavigationView = (SideNavigationView)findViewById(R.id.side_navigation_view);
sideNavigationView.setMenuItems(R.menu.sliding);
sideNavigationView.toggleMenu();

Now, make menu you want to show in Slide menu.

All the best….

Answer:

Like Wubao Li said , this now is supported by android in the DrawerLayout

Here is a tutorial of how to use it
http://developer.android.com/training/implementing-navigation/nav-drawer.html

And here a doc about how it should work
http://developer.android.com/design/patterns/navigation-drawer.html

Answer:

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. http://developer.android.com/tools/extras/support-library.html

Answer:

This is my implemetnation
https://github.com/MihaelIsaev/Swiper
Enjoy 🙂