Class ProductAttributesAdapter
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
-
- com.cheetahdigital.products.ui.productattribute.ProductAttributesAdapter
-
public class ProductAttributesAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
The adapter forProductAttributesActivity
-
-
Constructor Summary
Constructors Constructor Description ProductAttributesAdapter(Component component, OnAttributeItemClickListener listener)
Default Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getItemCount()
void
onBindViewHolder(ProductAttributesViewHolder holder, int position)
ProductAttributesViewHolder
onCreateViewHolder(android.view.ViewGroup parent, int viewType)
-
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
-
-
-
-
Constructor Detail
-
ProductAttributesAdapter
public ProductAttributesAdapter(Component component, OnAttributeItemClickListener listener)
Default Constructor- Parameters:
component
-Component
use to display necessary information on the adapterlistener
- theOnAttributeItemClickListener
to use
-
-
Method Detail
-
onCreateViewHolder
public ProductAttributesViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
- Specified by:
onCreateViewHolder
in classandroidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
-
onBindViewHolder
public void onBindViewHolder(@NonNull ProductAttributesViewHolder holder, int position)
- Specified by:
onBindViewHolder
in classandroidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
-
getItemCount
public int getItemCount()
- Specified by:
getItemCount
in classandroidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
-
-