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

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