public class StepRecyclerAdapter.RecipeStepViewHolder extends RecyclerView.ViewHolder
itemView
Constructor and Description |
---|
RecipeStepViewHolder(com.semartinez.projects.choppit.databinding.ItemRecipeStepBinding binding)
The ViewHolder constructor attaches a
View to each binding. |
Modifier and Type | Method and Description |
---|---|
void |
bind(Step step)
This method attaches a single @link Step} to a specific binding and attaches the active
Fragment to handle user input.
|
getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
public RecipeStepViewHolder(com.semartinez.projects.choppit.databinding.ItemRecipeStepBinding binding)
View
to each binding.binding
- is the connection between the data and the interface.public void bind(Step step)
step
- the item to be bound