public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            itemView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.TestSelection_Row, parent, false);
            PhotoViewHolder vh = new PhotoViewHolder(itemView, OnClick, mRecyclerView);

            return(vh);
        }
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            PhotoViewHolder photoViewHolder = holder as PhotoViewHolder;

            photoViewHolder.Caption.Text = finallist[position].CourseName;
            //int color = Resource.Color.abc_background_cache_hint_selector_material_dark;
            photoViewHolder.ItemView.Alpha = finallist[position].alpha;
            var color = new Color(ContextCompat.GetColor(ac, finallist[position].colorcode));

            photoViewHolder.cardview.SetBackgroundColor(color);
            photoViewHolder.Image.SetBackgroundResource(imagename[0]);
            Animation animation = AnimationUtils.LoadAnimation(ac, (position > lastPosition) ? Resource.Animation.slide_up : Resource.Animation.slide_up);

            photoViewHolder.ItemView.StartAnimation(animation);
            lastPosition = position;
        }