Hi. I have a custom listview that consists of CheckedTextView elements. I want to be able to check that at least one of the checkboxes is checked, and if not, keep the dialog on the screen. In order to implement this, I loop over the list items and check all of them. However, I could not find any way to keep the dialog open while onClick on positive is set. How should I proceed? Is there a way to implement a check in the onClick listener, and close or keep the dialog open according to the check result?
Hi. I have a custom listview that consists of
CheckedTextView
elements. I want to be able to check that at least one of the checkboxes is checked, and if not, keep the dialog on the screen. In order to implement this, I loop over the list items and check all of them. However, I could not find any way to keep the dialog open while onClick on positive is set. How should I proceed? Is there a way to implement a check in the onClick listener, and close or keep the dialog open according to the check result?Thanks.
@javiersantos