Class EditRecipesAdapter


  • public class EditRecipesAdapter
    extends EditItemAdapter<Recipe>
    EditRecipesAdapter is the adapter for the RecyclerView in the EditRecipesActivity. It holds a list of recipes and displays them in a list.
    • Constructor Detail

      • EditRecipesAdapter

        public EditRecipesAdapter()
    • Method Detail

      • onBindViewHolder

        public void onBindViewHolder​(@NonNull
                                     androidx.recyclerview.widget.RecyclerView.ViewHolder holder1,
                                     int position)
        OnBindViewHolder binds the view holder to the data. It sets the text of the view holder to the name of the recipe.
        Overrides:
        onBindViewHolder in class EditItemAdapter<Recipe>
        Parameters:
        holder1 - The view holder to bind.
        position - The position of the Recipe in the list.