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

            return(vh);
        }
Esempio n. 2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            GroupViewHolder vh = holder as GroupViewHolder;

            vh.Image.SetImageResource(mGroupList[position].mGroupID);
            vh.GroupName.Text = mGroupList[position].mGroupName;
        }