Ejemplo n.º 1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.DoctorsRecycleList, parent, false);

            //Create our ViewHolder to cache the layout view references and register
            //the OnClick event.
            Myview viewHolder = new Myview(itemView, OnClick);

            return(viewHolder);
        }
Ejemplo n.º 2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            Myview myholder = holder as Myview;

            myholder.Name.Text    = nInfo[position].HospitalName;
            myholder.DocName.Text = nInfo[position].Name;
            //myholder.mMainview.Click += MMainview_Click;


            myholder.ImageView1.SetImageBitmap(BusinessHelper.GetImageBitmapFromUrl(nInfo[position].ImagePath));
        }