Is it possible to create an expandable list AlertDialog?

后端 未结 3 672
闹比i
闹比i 2021-02-13 09:21

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 09:57

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

提交回复
热议问题