public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { DraggablePublicationListViewHolder vh = (DraggablePublicationListViewHolder)holder; vh.Publication = DataCache.INSTATNCE.PublicationManager.PublicationList[position]; vh.Update(); }
public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View v = LayoutInflater.From(parent.Context) .Inflate(Resource.Layout.organise_pub_list_item, parent, false); DraggablePublicationListViewHolder vh = new DraggablePublicationListViewHolder(v, this); return(vh); }