public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.agent_recycler, parent, false); AgentViewHolder vh = new AgentViewHolder(itemView, OnClick); return(vh); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { AgentViewHolder vh = holder as AgentViewHolder; vh.image.SetImageResource(mPhotoAlbum[position]); vh.heading.Text = dataList[position].heading; vh.description.Text = dataList[position].description; }