public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { var layoutResult = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.TicketsRecyclerView, parent, false); var holder = new TicketsCatViewHolder(layoutResult); return(holder); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { TicketsCatViewHolder tcvh = holder as TicketsCatViewHolder; tcvh.box.Id = ticketsCatModels.ElementAt(position).CheckBox; tcvh.textView.Text = ticketsCatModels.ElementAt(position).Text1; tcvh.textView2.Text = ticketsCatModels.ElementAt(position).Text2; }