public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.cart_list_item, parent, false); CartListItemViewHolder vh = new CartListItemViewHolder(itemView, OnClick); return(vh); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { CartListItemViewHolder vh = holder as CartListItemViewHolder; vh.Image.SetImageBitmap(items[position].itemImage); vh.Name.Text = items[position].itemName; vh.Rating.Rating = items[position].itemRating; vh.Category.Text = items[position].itemCategory; vh.Price.Text = items[position].itemPrice.ToString(); vh.quantity.Text += items[position].itemQuantity.ToString(); }