コード例 #1
0
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView            = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.PublicationCardView, parent, false);
            PublicationViewHolder vh = new PublicationViewHolder(itemView);

            return(vh);
        }
コード例 #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            PublicationViewHolder vh = holder as PublicationViewHolder;

            vh.content.Text = mPublicationContainer[position].Content;
        }