Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Sliding menu with sub menu

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 :

enter image description here

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.

enter image description here

like image 896
suresh cheemalamudi Avatar asked Mar 07 '13 06:03

suresh cheemalamudi


People also ask

How to create Floating Action menu sliding button in Android Studio?

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.

How do I add a submenu to an item?

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:

How do I show a popup menu in an Android app?

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.

How do I create a menu in HTML?

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.


1 Answers

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.

like image 186
GrIsHu Avatar answered Oct 28 '22 10:10

GrIsHu