public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { // instantiates the item layout file and the view holder View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.HistoricoCardView, parent, false); HistoricoViewHolder vh = new HistoricoViewHolder(itemView, OnClick); return(vh); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { // loads the data at the specified position into the views whose // references are stored in the given view holder Pedido tend = Historico[position]; HistoricoViewHolder vh = holder as HistoricoViewHolder; vh.Request.Text = tend.Termo; vh.Date.Text = tend.Data.ToString(); }