public class OnCreateViewHolderListenerImpl<Item extends IItem> extends java.lang.Object implements OnCreateViewHolderListener<Item>
| Constructor and Description |
|---|
OnCreateViewHolderListenerImpl() |
| Modifier and Type | Method and Description |
|---|---|
RecyclerView.ViewHolder |
onPostCreateViewHolder(FastAdapter<Item> fastAdapter,
RecyclerView.ViewHolder viewHolder)
is called after the viewHolder was created and the default listeners were added
|
RecyclerView.ViewHolder |
onPreCreateViewHolder(FastAdapter<Item> fastAdapter,
android.view.ViewGroup parent,
int viewType)
is called inside the onCreateViewHolder method and creates the viewHolder based on the provided viewTyp
|
public RecyclerView.ViewHolder onPreCreateViewHolder(FastAdapter<Item> fastAdapter, android.view.ViewGroup parent, int viewType)
onPreCreateViewHolder in interface OnCreateViewHolderListener<Item extends IItem>parent - the parent which will host the ViewviewType - the type of the ViewHolder we want to createfastAdapter - the fastAdapter which handles the creation of this viewHolderpublic RecyclerView.ViewHolder onPostCreateViewHolder(FastAdapter<Item> fastAdapter, RecyclerView.ViewHolder viewHolder)
onPostCreateViewHolder in interface OnCreateViewHolderListener<Item extends IItem>viewHolder - the created viewHolder after all listeners were setfastAdapter - the fastAdapter which handles the creation of this viewHolder