For a custom AlertDialog, can I override the positive button to NOT close the dialog? instead I want to run some edit checks and keep the dialog open if my checks fail.
I faced the same issue wherein I was not able to stop dialog from getting dismissed even when the input I wanted to collected in dialog had validation issues. To resolve this issue, I added buttons in the dialog's custom view so that I have better control.
There does not seem to be clean way of stopping dialog from getting dismissed if you use dialogBuilder's setNeutralButton or setPositiveButton or setNegativeButton.