G
G
goodTimes2017-03-12 18:38:29
Java
goodTimes, 2017-03-12 18:38:29

How can I make the dialog box close only when the button is clicked?

I want it to be possible to close only by the button, but not by clicking on the background

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Semenko, 2017-03-12
@abler98

dialog.setCancelable(false);
PS So that the dialog does not close when changing the configuration, it is better to use DialogFragment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question