How to handle AlertDialog close event?

前端 未结 3 590
旧巷少年郎
旧巷少年郎 2021-01-13 08:46

Is there a callback when an AlertDialog is closed using the touch outside event? I have this enabled \"setCanceledOnTouchOutside(true)\". I want to set a visibility of a spe

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-13 09:40

    an OnDismissListener seems most appropriate, but it requires a relatively high API level, so you might need to stick with an OnCancelListener instead.

提交回复
热议问题