Exemple #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            RecyclerView.ViewHolder rh;
            View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.InviteResponseView, parent, false);

            rh = new InviteResponseViewHolder(itemView, OnClick);
            return(rh);
        }
Exemple #2
0
 public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
 {
     //Modifying base view with exact data
     if (holder is InviteResponseViewHolder)
     {
         InviteResponseViewHolder rh = holder as InviteResponseViewHolder;
         rh.GroupTextView.Text = _groupList[position].Name;
     }
 }