public interface OnCreateViewHolderListener<Item extends IItem>
| 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
|
RecyclerView.ViewHolder onPreCreateViewHolder(FastAdapter<Item> fastAdapter, android.view.ViewGroup parent, int viewType)
fastAdapter - the fastAdapter which handles the creation of this viewHolderparent - the parent which will host the ViewviewType - the type of the ViewHolder we want to createRecyclerView.ViewHolder onPostCreateViewHolder(FastAdapter<Item> fastAdapter, RecyclerView.ViewHolder viewHolder)
fastAdapter - the fastAdapter which handles the creation of this viewHolderviewHolder - the created viewHolder after all listeners were set