问题描述
我开发一个Android应用程序,我需要把这将有超过3个级别的导航抽屉里。
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.
在具有类似抽屉应用:svpply(请看看这个应用程序,它有一个类似抽屉)
Application which have similar drawers: svpply (please have a look at this application, it has a similar drawer)
我在Android开发的新手,尽量详细信息添加到您的想法。
谢谢!
I am a newbie in android development, try to add details to your ideas.Thanks!
推荐答案
-
有一个单一抽屉保持的FrameLayout。
Have a single drawer keeping a FrameLayout.
请您所有的名单ListFragment
Make all your list as ListFragment
请上的FrameLayout片段事务是点击一个项目时。
Make Fragment Transaction on FrameLayout when a item is clicked.
这篇关于如何使多层次的(超过3级)导航抽屉的Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!