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

            rh = new GroupViewHolder(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 GroupViewHolder)
     {
         GroupViewHolder rh = holder as GroupViewHolder;
         rh.ContentButton.Text = _groupList[position].Name;
     }
 }