コード例 #1
0
ファイル: AgentAdapter.cs プロジェクト: Saurab45/RentToGo
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View            itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.agent_recycler, parent, false);
            AgentViewHolder vh       = new AgentViewHolder(itemView, OnClick);

            return(vh);
        }
コード例 #2
0
ファイル: AgentAdapter.cs プロジェクト: Saurab45/RentToGo
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            AgentViewHolder vh = holder as AgentViewHolder;

            vh.image.SetImageResource(mPhotoAlbum[position]);
            vh.heading.Text     = dataList[position].heading;
            vh.description.Text = dataList[position].description;
        }