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

            rh = new RequestViewHolder(itemView, OnClick);
            return(rh);
        }
Esempio n. 2
0
 public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
 {
     //Modifying base view with exact data
     if (holder is RequestViewHolder)
     {
         RequestViewHolder rh = holder as RequestViewHolder;
         rh.MemberTextView.Text = $"{_membersList[position].Surname} {_membersList[position].Name[0]}. {_membersList[position].Patronymic}. ({_membersList[position].Email})";
     }
 }