Is it possible to create an expandable list AlertDialog?

后端 未结 3 639
醉梦人生
醉梦人生 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 09:51

    Well, to use the listviews you have to extend the appropriate list-activity, in your case ExpandableListActivity. You wont be able to find a ExpandableListDialog to extend.

    I suppose you might be able to implement it in the activity which calls the dialog, and pass on the listview to the dialog as a reference, and manually add it to your layout in the dialog. Im not sure if this will work, but its worth a shot :D

提交回复
热议问题