Is it possible to create an expandable list AlertDialog?

后端 未结 3 637
醉梦人生
醉梦人生 2021-02-13 09:13

In my app the users are able to select articles to download using different criteria. One of them is year and month. For this I would like an AlertDialog with a list of years. I

3条回答
  •  感动是毒
    2021-02-13 10:14

    Use setView() on AlertDialog.Builder, passing in an ExpandableListView that you inflate or create in Java code and have set your adapter on.

提交回复
热议问题