I wanted my app to have face book like sliding menu. I google'd about the issue and found many posts out there, which only helped me to build a single sliding menu. But what i need is, 2 level sliding menu ie, when i click on some option in sliding menu, it should open another sliding menu on top of it (first sliding menu should blur at this point) like the zomato app as shown below. I tried with JFeinstein sliding menu library, but i could build a 2 level sliding menu using it. Are there any other libraries to achieve this or should i build one on my own?
Shown below is sliding menu from Zomato app :
When i click on "location" option on the above shown menu, it will open a secondary menu as shown below. I wanted the same feature.
Open your Project’s build.gradle ( Module : app ) and add com.android.support:appcompat-v7:23.4.0 library file. 2. Here is the code to add GitHub library inside build.gradle file. Screenshot after add this code into build.gradle file. Next step is start coding. Android Create Floating Action Menu Sliding Button in Android Studio.
You can add a submenu to an item in any menu by adding a <menu> element as the child of an <item>. Submenus are useful when your application has a lot of functions that can be organized into topics, like items in a PC application's menu bar (File, Edit, View, etc.). For example:
Call PopupMenu.show (). For example, here's a button with the android:onClick attribute that shows a popup menu: In API level 14 and higher, you can combine the two lines that inflate the menu with PopupMenu.inflate (). The menu is dismissed when the user selects an item or touches outside the menu area.
Defines a Menu, which is a container for menu items. A <menu> element must be the root node for the file and can hold one or more <item> and <group> elements. Creates a MenuItem, which represents a single item in a menu. This element may contain a nested <menu> element in order to create a submenu.
Check out the Sliding Panel component a widget enabling multiple overlaid views with sliding interaction for showing multiple depth data in one screen display effectively.
It also provide the demo of referenced implementation you can also check it.
Thanks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With