E
E
EnGold2022-02-05 10:11:27
Java
EnGold, 2022-02-05 10:11:27

How to handle clicking in a dialog?

how to make click handling in dialog, without this I can't save switch in sharedpreferences
61fe22c4bc196801846923.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexVWill, 2022-02-05
@EnGold

I already answered a similar question with the method DialogInterface.OnClickListener()
, look at the code, there is a ready-made solution: https://qna.habr.com/q/1105428
And you don’t need to upload screenshots, put the text of the code under the spoiler better.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question