public class PictureImageGridAdapter
extends <any>
Modifier and Type | Class and Description |
---|---|
class |
PictureImageGridAdapter.HeaderViewHolder |
static interface |
PictureImageGridAdapter.OnPhotoSelectChangedListener |
class |
PictureImageGridAdapter.ViewHolder |
Constructor and Description |
---|
PictureImageGridAdapter(android.content.Context context,
PictureSelectionConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
bindImagesData(java.util.List<LocalMedia> images) |
void |
bindSelectImages(java.util.List<LocalMedia> images) |
java.util.List<LocalMedia> |
getImages() |
int |
getItemCount() |
int |
getItemViewType(int position) |
java.util.List<LocalMedia> |
getSelectedImages() |
boolean |
isSelected(LocalMedia image) |
void |
onBindViewHolder(RecyclerView.ViewHolder holder,
int position) |
RecyclerView.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
selectImage(PictureImageGridAdapter.ViewHolder holder,
boolean isChecked,
boolean isAnim)
选中的图片并执行动画
|
void |
setOnPhotoSelectChangedListener(PictureImageGridAdapter.OnPhotoSelectChangedListener imageSelectChangedListener) |
void |
setShowCamera(boolean showCamera) |
public PictureImageGridAdapter(android.content.Context context, PictureSelectionConfig config)
public void setShowCamera(boolean showCamera)
public void bindImagesData(java.util.List<LocalMedia> images)
public void bindSelectImages(java.util.List<LocalMedia> images)
public java.util.List<LocalMedia> getSelectedImages()
public java.util.List<LocalMedia> getImages()
public int getItemViewType(int position)
public RecyclerView.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position)
public int getItemCount()
public boolean isSelected(LocalMedia image)
public void selectImage(PictureImageGridAdapter.ViewHolder holder, boolean isChecked, boolean isAnim)
holder
- isChecked
- isAnim
- public void setOnPhotoSelectChangedListener(PictureImageGridAdapter.OnPhotoSelectChangedListener imageSelectChangedListener)