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

            return(vh);
        }
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            solutionViewHolder photoViewHolder = holder as solutionViewHolder;
            //int myposition = Convert.ToInt32(photoViewHolder.Caption.GetTag(position));


            List <questionmodel> questionlist = Allquestion[position];

            Console.WriteLine("deepanshu---------->" + position);
            for (int i = 0; i < questionlist.Count; i++)
            {
                if (questionlist[i].Datatype == 1)
                {
                    photoViewHolder.Caption.SetBackgroundResource(questionlist[i].rightorwrongColorCode);
                    photoViewHolder.Caption.SetTextColor(new Android.Graphics.Color(ContextCompat.GetColor(ac, questionlist[i].rightorwrongTextColor)));
                    break;
                }
                else
                {
                    continue;
                }
            }


            // photoViewHolder.view.SetBackgroundColor(new Android.Graphics.Color(ContextCompat.GetColor(ac, questionlist[position].Stripecolor)));

            position = position + 1;
            photoViewHolder.Caption.Text = position + "";

            //int color = Resource.Color.abc_background_cache_hint_selector_material_dark;

            Animation animation = AnimationUtils.LoadAnimation(ac, (position > lastPosition) ? Resource.Animation.scale500 : Resource.Animation.scale500);

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