Пример #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View           itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.House_recycler, parent, false);
            HouseViewHolde vh       = new HouseViewHolde(itemView, OnClick);

            return(vh);
        }
Пример #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder hold, int position)
        {
            HouseViewHolde vh = hold as HouseViewHolde;

            vh.image.SetImageResource(mPhotoAlbum[position]);
            vh.heading.Text = houseList[position].heading;
            vh.detail.Text  = houseList[position].detail;
        }