MaterialStyledDialogs icon indicating copy to clipboard operation
MaterialStyledDialogs copied to clipboard

Disabling the onClick event for listview

Open karakanb opened this issue 7 years ago • 0 comments

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

karakanb avatar Apr 14 '17 08:04 karakanb