-2

Hi i have implemented a Android sliding menu using navigation drawer with help of WWW.androidhive.info tutorial.

now my question is , is it possible to have sub menus in the sliding menu?

i mean for example assume i have four options in sliding menu "Facebook","twitter","watsup","android". and my question is , if i press on Facebook a sub menu must come in down, with in that i must have some other options , like "photos","places" etc..

when i click on Facebook a drop down menu must appear by pushing down the other items(twitter,watsup,android) in the sliding menu.

(i want sub menu should be shown in the same sliding menu. not in a new sliding menu)

  • @Siddharth Lele: have already checked that one, and that's not helpful for me. There a new sliding menu is opening but i want sub menu to be opened in the same sliding menu. now i am working on expandable listview as suggested by Shivam Verma. – AndroidManifester May 10 '14 at 10:59

2 Answers2

3

Why not use the expandable list views in the drawer layout : http://developer.android.com/reference/android/widget/ExpandableListView.html

Shivam Verma
  • 7,973
  • 3
  • 26
  • 34
0

Use ExpandableListView instead of ListView in the navigation drawer.

SathMK
  • 1,171
  • 1
  • 8
  • 18