public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context). Inflate(Resource.Layout.SpeakerCardView, parent, false); SpeakerViewHolder vh = new SpeakerViewHolder(itemView, OnClick); return(vh); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { SpeakerViewHolder vh = holder as SpeakerViewHolder; var imageBitmap = GetImageBitmapFromUrl(listOfSpeakers[position].Photo); vh.speakerPhotoImageView.SetImageBitmap(imageBitmap); vh.speakerNameTextView.Text = listOfSpeakers[position].Name; }