javiersantos / javiersantos/MaterialStyledDialogs

Disabling the onClick event for listview

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.2k
Forks
151
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the dialog's positive-button onClick handling and the custom listview's CheckedTextView interaction. Reproduce the validation scenario and determine whether the dialog can remain open when no item is checked; done means the requested check and close-or-keep-open behavior is clearly supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.