Exemplo n.º 1
0
        OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            BookViewHolder vh = holder as BookViewHolder;

            vh.Title.Text = books[position].title;
            vh.Body.Text  = books[position].body;
        }
Exemplo n.º 2
0
        OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From(parent.Context).
                            Inflate(Resource.Layout.book_layout, parent, false);

            BookViewHolder vh = new BookViewHolder(itemView, OnClick);

            return(vh);
        }