Class ShoppingCartIngredientAdapter.ViewHolder

  • Enclosing class:
    ShoppingCartIngredientAdapter

    public class ShoppingCartIngredientAdapter.ViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    ViewHolder class for the ShoppingCartIngredientAdapter. It contains the TextViews for the description, amount, unit and category of the ingredient.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      android.widget.CheckBox checkBox  
      android.widget.TextView description  
      android.widget.TextView subtext  
      android.view.View view  
      • Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        itemView
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewHolder​(android.view.View itemView)  
    • Method Summary

      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • description

        public android.widget.TextView description
      • subtext

        public android.widget.TextView subtext
      • checkBox

        public android.widget.CheckBox checkBox
      • view

        public android.view.View view
    • Constructor Detail

      • ViewHolder

        public ViewHolder​(@NonNull
                          android.view.View itemView)