我看过的Android导航抽屉的文件,但没有任何有关如何在导航抽屉创建可折叠的/可扩展列表项。我知道一些关于Android ExpandableListView
但我认为这不是创造的方式。
我想创建这样的嵌套的项目:
I have read the documentation of android Navigation Drawer but there is nothing on how to create collapsible/expandable List item in navigation drawer. I know something about android ExpandableListView
but I think it is not the way to create it.
I want to create such nested item:
您可以使用ExpandableListView并编写自己的ExpandableListAdapter并使用它作为你的抽屉的项目。
You can start with ExpandableListView
and writing your own ExpandableListAdapter
and use that as your drawer item.