public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            // Inflate the CardView for the photo:
            View itemView;

            if (viewType == 0)
            {
                itemView = LayoutInflater.From(parent.Context).
                           Inflate(Resource.Layout.FavoritesRow, parent, false);

                PhotoViewHolder vh = new PhotoViewHolder(itemView, OnClick, OnLongClick);

                return(vh);
            }
            else
            {
                itemView = LayoutInflater.From(parent.Context).
                           Inflate(Resource.Layout.FavoritsListMultiLIneView, parent, false);

                PhotoViewHolderMultiLine vh = new PhotoViewHolderMultiLine(itemView, OnClick, OnLongClick);

                return(vh);
            }

            // Create a ViewHolder to hold view references inside the CardView:
        }
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            // Load the photo image resource from the photo album:
            //vh.Image.SetImageResource(mPhotoAlbum[position].PhotoID);

            // Load the photo caption from the photo album:



            if (mPhotoAlbum[position].fromName != null && mPhotoAlbum[position].toName != null)
            {
                PhotoViewHolderMultiLine vh = holder as PhotoViewHolderMultiLine;
                vh.To.Text   = mPhotoAlbum[position].toName;
                vh.From.Text = mPhotoAlbum[position].fromName;
            }
            else if (mPhotoAlbum[position].fromName != null)
            {
                PhotoViewHolder vh = holder as PhotoViewHolder;
                vh.Caption.Text = mPhotoAlbum[position].fromName;
            }
        }