public class OnBindViewHolderListenerImpl extends java.lang.Object implements OnBindViewHolderListener
| Constructor and Description |
|---|
OnBindViewHolderListenerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
onBindViewHolder(RecyclerView.ViewHolder viewHolder,
int position,
java.util.List<java.lang.Object> payloads)
is called in onBindViewHolder to bind the data on the ViewHolder
|
boolean |
onFailedToRecycleView(RecyclerView.ViewHolder viewHolder,
int position)
is called when the ViewHolder is in a transient state.
|
void |
onViewAttachedToWindow(RecyclerView.ViewHolder viewHolder,
int position)
is called in onViewAttachedToWindow when the view is detached from the window
|
void |
onViewDetachedFromWindow(RecyclerView.ViewHolder viewHolder,
int position)
is called in onViewDetachedFromWindow when the view is detached from the window
|
void |
unBindViewHolder(RecyclerView.ViewHolder viewHolder,
int position)
is called in onViewRecycled to unbind the data on the ViewHolder
|
public void onBindViewHolder(RecyclerView.ViewHolder viewHolder,
int position,
java.util.List<java.lang.Object> payloads)
onBindViewHolder in interface OnBindViewHolderListenerviewHolder - the viewHolder for the type at this positionposition - the position of this viewHolderpayloads - the payloads provided by the adapterpublic void unBindViewHolder(RecyclerView.ViewHolder viewHolder,
int position)
unBindViewHolder in interface OnBindViewHolderListenerviewHolder - the viewHolder for the type at this positionposition - the position of this viewHolderpublic void onViewAttachedToWindow(RecyclerView.ViewHolder viewHolder,
int position)
onViewAttachedToWindow in interface OnBindViewHolderListenerviewHolder - the viewHolder for the type at this positionposition - the position of this viewHolderpublic void onViewDetachedFromWindow(RecyclerView.ViewHolder viewHolder,
int position)
onViewDetachedFromWindow in interface OnBindViewHolderListenerviewHolder - the viewHolder for the type at this positionposition - the position of this viewHolderpublic boolean onFailedToRecycleView(RecyclerView.ViewHolder viewHolder,
int position)
onFailedToRecycleView in interface OnBindViewHolderListenerviewHolder - the viewHolder for the view which failed to recycleposition - the position of this viewHolder