Package com.xffffff.wellfed.mealplan
Class MealPlanIngredientItemAdapter
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
-
- com.xffffff.wellfed.common.ItemAdapter<Item>
-
- com.xffffff.wellfed.mealplan.MealPlanItemAdapter<Ingredient>
-
- com.xffffff.wellfed.mealplan.MealPlanIngredientItemAdapter
-
public class MealPlanIngredientItemAdapter extends MealPlanItemAdapter<Ingredient>
MealPlanIngredientItemAdapter is the adapter for the RecyclerView in the MealPlanIngredientItemActivity. It holds a list of ingredients and displays them in a list.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.xffffff.wellfed.mealplan.MealPlanItemAdapter
MealPlanItemAdapter.ItemViewHolder
-
-
Field Summary
-
Fields inherited from class com.xffffff.wellfed.common.ItemAdapter
items
-
-
Constructor Summary
Constructors Constructor Description MealPlanIngredientItemAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder1, int position)
onBindViewHolders binds the data to the view holder.-
Methods inherited from class com.xffffff.wellfed.mealplan.MealPlanItemAdapter
onCreateViewHolder, setOnItemClickListener
-
Methods inherited from class com.xffffff.wellfed.common.ItemAdapter
getItemCount, getItems, setItems
-
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
-
-
-
-
Method Detail
-
onBindViewHolder
public void onBindViewHolder(@NonNull androidx.recyclerview.widget.RecyclerView.ViewHolder holder1, int position)
onBindViewHolders binds the data to the view holder.- Overrides:
onBindViewHolder
in classMealPlanItemAdapter<Ingredient>
- Parameters:
holder1
- the view holderposition
- the position of the item in the ArrayList
-
-