public ContentViewHolder(ICollectionViewRenderer renderer, ContentCellContainer view) : base(view)
        {
            _renderer = renderer;

            view.LayoutParameters = new ViewGroup.LayoutParams(CellWidth, CellHeight);
            view.ViewHolder       = this;
        }
        protected virtual AView GetCell(ContentCell item, ContentCellContainer convertView, ViewGroup parent, Context context, Xamarin.Forms.View view)
        {
            var renderer = ContentCellRenderer.GetRenderer(item);

            if (renderer == null)
            {
                renderer = Registrar.Registered.GetHandlerForObject <ContentCellRenderer>(item);
            }


            return(renderer.GetCell(item, convertView, parent, context));
        }
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            var container  = new ContentCellContainer(_context);
            var viewHolder = new ContentViewHolder(_collectionViewRenderer, container);

            if (viewType < DefaultGroupHeaderTemplateId)
            {
                viewHolder.ItemView.SetOnClickListener(this);
                viewHolder.ItemView.SetOnLongClickListener(this);
            }

            _viewHolders.Add(viewHolder);

            return(viewHolder);
        }