Пример #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView         = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.RecyclerCardView, parent, false);
            RecyclerViewHolder vh = new RecyclerViewHolder(itemView, OnClick);

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

            vh.text.Text = dataset[position].title;
        }