dvdciri / MultiChoiceRecyclerView

Multi choice selection applied on recycler view make life easier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New Feature: isSelected(int position)

hardysim opened this issue · comments

There should be a method to report if a specific position is currently selected.


See discussion in #29.

@dvdciri my implementation would be

public boolean isSelected(int position) {
    return getSelectedItemListInternal().contains(position);
}

As you mentioned in #29 that's maybe too easy (as you can use getSelectedItemList() and do the contains() yourself.

Should be dismiss this?

Yeah that is what i was saying... closing it