示例#1
0
        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);
        }
示例#2
0
        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;
        }