public class ImageVideoAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<ImageVideoAdapter.ViewHolder> implements android.view.View.OnClickListener
限定符和类型 | 类和说明 |
---|---|
static interface |
ImageVideoAdapter.ItemClickListener |
class |
ImageVideoAdapter.ViewHolder |
限定符和类型 | 方法和说明 |
---|---|
void |
addData(ReportMediaBean mediaBean) |
java.util.List<ReportMediaBean> |
getData() |
int |
getItemCount() |
void |
onBindViewHolder(ImageVideoAdapter.ViewHolder holder,
int position) |
void |
onClick(android.view.View v) |
ImageVideoAdapter.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
remove(ReportMediaBean obj) |
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
public void addData(ReportMediaBean mediaBean)
public void remove(ReportMediaBean obj)
public java.util.List<ReportMediaBean> getData()
public ImageVideoAdapter.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
onCreateViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<ImageVideoAdapter.ViewHolder>
public void onBindViewHolder(ImageVideoAdapter.ViewHolder holder, int position)
onBindViewHolder
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<ImageVideoAdapter.ViewHolder>
public int getItemCount()
getItemCount
在类中 androidx.recyclerview.widget.RecyclerView.Adapter<ImageVideoAdapter.ViewHolder>
public void onClick(android.view.View v)
onClick
在接口中 android.view.View.OnClickListener