Skip to content

SelectableViewAdapter

Compare
Choose a tag to compare
@MikiLoz92 MikiLoz92 released this 20 Aug 15:18
· 17 commits to master since this release
  • Added SelectableViewAdapter, a special type of adapter that extends from SuperSelectableAdapter, and incorporates a View that acts as visual feedback of the selection status of an item. This View responds to selection actions with a nice flip animation.
  • Now HandleAdapter extends from SelectableViewAdapter instead of SuperSelectableAdapter: made more sense this way, since the only thing that differentiates it from SelectableViewAdapter is that the selectable View can start a drag.
  • Added setSelectableViewBehavior method to SelectableViewAdapter and all its child classes. This method sets whether the selectable View can actually be clicked to be selected, or it just acts as visual feedback and cannot be provided with input.

API Changes:

  • onBindHandleViewHolder on HandleAdapter is renamed to onBindSelectableViewHolder.