-
Notifications
You must be signed in to change notification settings - Fork 82
Support per-item selectability #22
Comments
This behavior is supported right now by using a different MultiSelector for On Mon, Mar 28, 2016 at 3:34 AM, Sebastian Roth notifications@github.com
|
Perhaps not. I'm looking for that behavior within a set. Example: File browser lists files in a folder, and only the writable files can be marked for deletion. |
That can be accomplished by having a different ViewHolder type for writable files. Writable files are hooked up to the "deletion" MultiSelector, and non-writeable files aren't hooked up to it at all. |
Staying at the file manager example: Ok but what if the same set SHOULD be selectable if the users wants to select for something beside deletion (like sharing). I would probably refresh all items then and reload with new item types but that doesn't seem as efficient. Plus the viewHolder interface does provide a "isSelectable" method which does not seem used in the Selector. |
Then share would have a separate MultiSelector.
|
Right now, only all or none items can be set as selectable.
The MultiSelector should not use it's own "mIsSelectable" flag, but the
SwappingHolder#isSelectable
to decide what happens on a click.The text was updated successfully, but these errors were encountered: