public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { CardReminderViewHolder viewHolder = (CardReminderViewHolder)holder; // Set the CardView's Elements viewHolder.TextTitle.Text = DataSet[position].Title; viewHolder.TextMessage.Text = DataSet[position].Message; }
public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context) .Inflate(Resource.Layout.card_view_notif_reminder, parent, false); CardReminderViewHolder viewHolder = new CardReminderViewHolder(itemView, OnClick); return(viewHolder); }