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

            return(vh);
        }
Example #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            WorkListViewHolder vh        = holder as WorkListViewHolder;
            Appraisee          appraisee = BaseObjects[position] as Appraisee;

            vh.TvwSerialNo.Text     = appraisee.SerialNo + "";
            vh.TvwMsg.Text          = appraisee.Message;
            vh.TvwApprovalType.Text = appraisee.ApprovalType;
            vh.TvwSentBy.Text       = appraisee.SentBy;
            vh.TvwDateSent.Text     = appraisee.DateSent;
        }