Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

Please add onItemCheckedStateChanged listener #21

Open
MartinRajniak opened this issue Mar 1, 2016 · 4 comments
Open

Please add onItemCheckedStateChanged listener #21

MartinRajniak opened this issue Mar 1, 2016 · 4 comments

Comments

@MartinRajniak
Copy link

It would be nice if we could listen to Multiselect selection events, like we do with action mode listener.

@jingibus
Copy link

jingibus commented Mar 2, 2016

Which class are you referring to? On Multiselector?

@MartinRajniak
Copy link
Author

Yes Multiselector.
What I do now, is that I extend Multiselector to provide Observer functionality. What I needed to know was when first item is checked (as in action mode created), when any item's check state is changed (as in item checked state changed) and when last item is un-checked (as in aciton mode destroyed).

@rhyshalsey
Copy link

I second this. Right now, I can't figure out how to update the multi-select action bar title when items are selected or unselected. I'd like to be able to write : "1 item selected", "2 items selected", etc.

Is there a temporary solution someone can suggest?

@jingibus
Copy link

I agree that a way to:

  1. listen to selection state changes on MultiSelector, and
  2. check the current set of selection states

...would be pretty handy.

In the current version of the library, the solution is to check selection state from within the ViewHolder when it receives the click event.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants