public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context). Inflate(Resource.Layout.item_shows, parent, false); ShowsViewHolder vh = new ShowsViewHolder(itemView); return(vh); }
public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { ShowsViewHolder vh = holder as ShowsViewHolder; //vh.Image.SetImageBitmap(GetBitmap(shows[position].PosterLink)); vh.Image.SetImageBitmap(IMDBShowsManager.ShowsBitmaps[position]); vh.Name.Text = shows[position].Name; vh.Genre.Text = shows[position].Genre; vh.ShowsModel = shows[position]; vh.RatingBar.Rating = shows[position].Rating; if (position == shows.Count - 1) { IMDBShowsManager.LoadShows(IMDBShowsManager.ShowsLoadCount.Middle); } }