public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { CollectionItemListHolder vh = holder as CollectionItemListHolder; vh.TitleText.Text = _list[position].MovieTitle; vh.DescText.Text = _list[position].MovieID.ToString(); vh.Thumbnail.SetImageResource(Resource.Drawable.Icon); }
public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View viewItem = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.CollectionItemRow, parent, false); CollectionItemListHolder vh = new CollectionItemListHolder(viewItem, OnClick); return(vh); }