Hello! How can i handle long press on Checkbox alo...
# compose
p
Hello! How can i handle long press on Checkbox along with default click behavior?
s
Out of curiosity: Why would you want to long press on a checkbox?
p
I have a list of items with their selection. By long press I want to start range selection where first long press mark current item as start and another click event on other item will mark the end of range.
s
Oh, I see. So you have a list of checkboxes. I would add a listener to the Item (Box) the checkbox is in and go from there.
Modifier.combinedClickable
is what you are looking for.
p
I've made with combined. But on mouse over now square area appeares instead of rounded. I want to keep native checkbox visual effects.