Package com.xffffff.wellfed.ingredient
Class IngredientDetailAdapter
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
-
- com.xffffff.wellfed.common.ItemAdapter<Ingredient>
-
- com.xffffff.wellfed.ingredient.IngredientDetailAdapter
-
public class IngredientDetailAdapter extends ItemAdapter<Ingredient>
ItemDetailAdapter is the adapter for the item detail recycler view
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
IngredientDetailAdapter.ViewHolder
ViewHolder is the view holder for the item detail recycler view
-
Field Summary
-
Fields inherited from class com.xffffff.wellfed.common.ItemAdapter
items
-
-
Constructor Summary
Constructors Constructor Description IngredientDetailAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder, int position)
onBindViewHolder binds the view to the dataandroidx.recyclerview.widget.RecyclerView.ViewHolder
onCreateViewHolder(android.view.ViewGroup parent, int viewType)
onCreatedViewHolder inflates the view-
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
-
onCreateViewHolder
@NonNull public androidx.recyclerview.widget.RecyclerView.ViewHolder onCreateViewHolder(@NonNull android.view.ViewGroup parent, int viewType)
onCreatedViewHolder inflates the view- Specified by:
onCreateViewHolder
in classandroidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
- Parameters:
parent
- activity that handles the ingredientsviewType
- view type- Returns:
- the view holder
-
onBindViewHolder
public void onBindViewHolder(@NonNull androidx.recyclerview.widget.RecyclerView.ViewHolder holder, int position)
onBindViewHolder binds the view to the data- Specified by:
onBindViewHolder
in classandroidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
- Parameters:
holder
- the view holderposition
- the position of the item
-
-