示例#1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder (ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From (parent.Context).Inflate (Resource.Layout.UserCardView, parent, false);

            PhotoViewHolderUser vh = new PhotoViewHolderUser (itemView, OnClick);
            return vh;
        }
示例#2
0
        public override void OnBindViewHolder (RecyclerView.ViewHolder holder, int position)
        {
            PhotoViewHolderUser vh = holder as PhotoViewHolderUser;

            SetImageAsync (vh.Image, mPhotoAlbum[position].mPhotoURI);

            vh.Caption.Text = mPhotoAlbum[position].Caption;
        }