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; }
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; }