public abstract class SelectableAdapter extends RecyclerView.Adapter implements Selectable
| 构造器和说明 |
|---|
SelectableAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearSelection()
Clear the selection status for all items
|
int |
getSelectedItemCount()
Count the selected items
|
List<Image> |
getSelectedPhotos()
Indicates the list of selected photos
|
boolean |
isSelected(Image image)
Indicates if the item at position position is selected
|
void |
setData(List<Image> images)
设置数据集
|
void |
setDefaultSelected(ArrayList<String> resultList)
通过图片路径设置默认选择
|
void |
toggleSelection(Image image)
Toggle the selection status of the item at a given position
|
public boolean isSelected(Image image)
SelectableisSelected 在接口中 Selectableimage - Photo of the item to checkpublic void toggleSelection(Image image)
SelectabletoggleSelection 在接口中 Selectableimage - Photo of the item to toggle the selection status forpublic void clearSelection()
SelectableclearSelection 在接口中 Selectablepublic int getSelectedItemCount()
SelectablegetSelectedItemCount 在接口中 Selectablepublic List<Image> getSelectedPhotos()
SelectablegetSelectedPhotos 在接口中 Selectable