public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.notification_card_view, parent, false); NotifyViewHolder vh = new NotifyViewHolder(itemView, _context, OnClick); return(vh); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { NotifyViewHolder vh = holder as NotifyViewHolder; vh.Name.Text = _notifications[position].Name; vh.Content.Text = _notifications[position].Content; vh.Time.Text = _notifications[position].Time; }