Beispiel #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView         = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.resource_recycler, parent, false);
            ResourceViewHolder vh = new ResourceViewHolder(itemView, OnClick);

            return(vh);
        }
Beispiel #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            ResourceViewHolder vh = holder as ResourceViewHolder;

            vh.resourceName.Text = mResource[position].mResourceName;
            vh.resourceRole.Text = mResource[position].mResourceRoler;
            vh.resourcePic.SetImageResource(mResource[position].mResourcePic);
        }