在导航抽屉可折叠列表项 [英] Collapsible List Item in navigation Drawer
问题描述
我看过的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:
推荐答案
您可以使用<一个开始href="https://developer.android.com/reference/android/widget/ExpandableListView.html"><$c$c>ExpandableListView$c$c>并编写自己的<一href="https://developer.android.com/reference/android/widget/ExpandableListAdapter.html"><$c$c>ExpandableListAdapter$c$c>并使用它作为你的抽屉的项目。
You can start with ExpandableListView
and writing your own ExpandableListAdapter
and use that as your drawer item.
这篇关于在导航抽屉可折叠列表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!