Package com.xffffff.wellfed.mealplan
Class MealPlanRecipeItemAdapter
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
-
- com.xffffff.wellfed.common.ItemAdapter<Item>
-
- com.xffffff.wellfed.mealplan.MealPlanItemAdapter<Recipe>
-
- com.xffffff.wellfed.mealplan.MealPlanRecipeItemAdapter
-
public class MealPlanRecipeItemAdapter extends MealPlanItemAdapter<Recipe>
The MealPlanRecipeItemAdapter class binds ArrayList to RecyclerView.
-
-
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 MealPlanRecipeItemAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder1, int position)
onBindViewHolder method binds a Recipe object and a ItemViewHolder object.-
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)
onBindViewHolder method binds a Recipe object and a ItemViewHolder object.- Overrides:
onBindViewHolder
in classMealPlanItemAdapter<Recipe>
- Parameters:
holder1
- the view holderposition
- the position of the item in the ArrayList
-
-