For example, I need to show the window, but perform some actions when the user clicks either outside the area of ​​this window or presses the Back button. setCanselable(false); - not an option. You need to leave the opportunity to close the window, but to catch a click outside it.

Can there be any OnCanselableListener ?

    1 answer 1

    Dialogs have a setOnDismissListener() method that sets a listener for a dialog to disappear from the screen.

    • Thank you) I will know) Asked just like that) - Flippy