public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup p0, int p1) { LayoutInflater inflater = LayoutInflater.From(p0.Context); View itemView = inflater.Inflate(Resource.Layout.example_list_view_item_layouts, p0, false); LayoutsViewHolder customHolder = new LayoutsViewHolder(itemView); return(customHolder); }
public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup p0, int p1) { LayoutInflater inflater = LayoutInflater.From(p0.Context); View itemView = inflater.Inflate(Resource.Layout.example_list_view_item_layouts, p0, false); LayoutsViewHolder customHolder = new LayoutsViewHolder(itemView); return customHolder; }
public override void OnBindListViewHolder(ListViewHolder p0, int p1) { LayoutsViewHolder customVH = (LayoutsViewHolder)p0; customVH.txtItemText.Text = this.GetItem(p1).ToString(); }