public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View view       = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.data_item_layout, parent, false);
            var  viewHolder = new MyDataViewHolder(view);

            return(viewHolder);
        }
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            var inflater = LayoutInflater.From(parent.Context);

            RecyclerView.ViewHolder viewHolder = null;

            switch (viewType)
            {
            case ItemViewId:
                var view = inflater.Inflate(Resource.Layout.data_item_layout, parent, false);
                viewHolder = new MyDataViewHolder(view);
                break;

            case HeaderViewId:
                var headerView = inflater.Inflate(Resource.Layout.mydata_header_layout, parent, false);
                viewHolder = new MyDataHeaderViewHolder(headerView);
                break;
            }

            return(viewHolder);
        }