public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { switch (viewType) { case 0: var cell = new CardCell(Context.LayoutInflater.Inflate(Resource.Layout.CardCell, null)); return(cell); case 1: return(new ImageAndTextViewCell(Context.LayoutInflater.Inflate(Resource.Layout.ImageAndTextViewCell, null))); case 2: return(new CardSharingCell(Context.LayoutInflater.Inflate(Resource.Layout.CardSharingCell, null))); default: return(null); } }
public GestureListener(CardCell Class) { cardCell = Class; }