// Create new views (invoked by the layout manager) public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { //Setup your layout here View itemView = null; var id = Resource.Layout.item; itemView = LayoutInflater.From(parent.Context). Inflate(id, parent, false); var vh = new ImageAdapterViewHolder(itemView, OnClick, OnLongClick); return vh; }
public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView; var id = Resource.Layout.item; itemView = LayoutInflater.From(parent.Context).Inflate(id, parent, false); var holder = new ImageAdapterViewHolder(itemView, OnClick, OnLongClick); return(holder); }