Package com.xffffff.wellfed.ingredient
Class IngredientSearchAdapter.ViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.xffffff.wellfed.ingredient.IngredientSearchAdapter.ViewHolder
-
- Enclosing class:
- IngredientSearchAdapter
public static class IngredientSearchAdapter.ViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
Holds the views for the ingredients in the search
-
-
Constructor Summary
Constructors Constructor Description ViewHolder(android.view.View view)
Creates a ViewHolder for an ingredient
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(Ingredient ingredient, OnItemClickListener listener)
Binds an ingredient to a ViewHolder, to properly display the data
-
-
-
Method Detail
-
bind
public void bind(Ingredient ingredient, OnItemClickListener listener)
Binds an ingredient to a ViewHolder, to properly display the data- Parameters:
ingredient
- the Ingredient to bind to the ViewHolderlistener
- the ingredient click listener to bind to the ViewHolder
-
-