1

I am developing an android application where I need to put a navigation drawer which would have more than 3 levels.

What I want to do: If I click one item of my list in the drawer, a whole new list comes up in the drawer. This new list should also do the same when items of this list are clicked. This could go on for many levels.

What I have done till now: I am keeping an expandable list which expands when I click on any item. This design doesn't allow adding more levels.

Application which have similar drawers: svpply (please have a look at this application, it has a similar drawer)

I am a newbie in android development, try to add details to your ideas. Thanks!

3
  • Why not this "new list" comes up in new Activity? Commented Jun 19, 2014 at 6:28
  • Use ExpandableListView with custom ExpandableListAdapter and use that as your drawer item. Commented Jun 19, 2014 at 6:37
  • New list should come in the drawer. Commented Jun 19, 2014 at 6:45

1 Answer 1

1
  • Have a single drawer keeping a FrameLayout.

  • Make all your list as ListFragment

  • Make Fragment Transaction on FrameLayout when a item is clicked.

Sign up to request clarification or add additional context in comments.

4 Comments

Let me know if you still need more clarification to how to exactly do that what i stated above. There are several examples available on that on Google
Please share such example, I am very new to android development. Also, if you could, please take a look at svpply. I want to know how exactly they implemented the drawer design. Share the examples as well. Thank you! :)
Find the navigational drawer example at :developer.android.com/design/patterns/navigation-drawer.html What I would suggest is you can launch a DialogFragment with same XML UI format which is much simpler for every click the user makes, and you don't need keep track of backstack in fragment.
I've checked the svpply app. Its not a expandable list. Its pretty simple infact. Just prepare your all kind of lists separately as a subclass of ListFragment . And on specific click just change the fragment on framelayout present in drawer. That should do it. Search for google change fragment dyanmically.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.