public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { savedVouchersView Holder = holder as savedVouchersView; Console.Write(nsavedVouchers[position].voucherImage); Holder.nVoucherImage.SetImageBitmap(ImageHelper.GetImageBitmapFromUrl(nsavedVouchers[position].voucherImage)); Holder.nrestName.Text = nsavedVouchers[position].restName; Holder.nMainView.Click += mMainView_Click; }
public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View row = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.profileSavedVouchers, parent, false); ImageView image = row.FindViewById <ImageView>(Resource.Id.voucherImage); TextView restaurantName = row.FindViewById <TextView>(Resource.Id.restaurantVoucherName); savedVouchersView view = new savedVouchersView(row) { nVoucherImage = image, nrestName = restaurantName }; return(view); }