Example #1
0
        OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            PostViewHolder vh = holder as PostViewHolder;

            vh.Title.Text = posts[position].title;
            vh.Body.Text  = posts[position].body;
        }
Example #2
0
        OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From(parent.Context).
                            Inflate(Resource.Layout.post_layout, parent, false);

            PostViewHolder vh = new PostViewHolder(itemView);

            return(vh);
        }