Class 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.
    • 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 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MealPlanIngredientItemAdapter

        public MealPlanIngredientItemAdapter()
    • 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 class MealPlanItemAdapter<Ingredient>
        Parameters:
        holder1 - the view holder
        position - the position of the item in the ArrayList