Пример #1
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            CollectionItemListHolder vh = holder as CollectionItemListHolder;

            vh.TitleText.Text = _list[position].MovieTitle;
            vh.DescText.Text  = _list[position].MovieID.ToString();
            vh.Thumbnail.SetImageResource(Resource.Drawable.Icon);
        }
Пример #2
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View viewItem = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.CollectionItemRow, parent, false);

            CollectionItemListHolder vh = new CollectionItemListHolder(viewItem, OnClick);

            return(vh);
        }