Beispiel #1
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            var vh = holder as CastViewHolder;

            ImageViewsToClean.Add(vh.CastImage);
            vh.CastName.Text  = Cast[position].Name;
            vh.Character.Text = Cast[position].Character;
            Context context = vh.CastImage.Context;

            Helper.SetImage(context, Cast[position].ProfilePath, vh.CastImage, Resource.Drawable.NoCast);
        }
Beispiel #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            var vh = holder as CastViewHolder;

            ImageViewsToClean.Add(vh.CastImage);
            var searchPerson = Cast[position] as PersonResult;

            vh.CastName.Text = searchPerson.Name;
            Context context = vh.CastImage.Context;

            Helper.SetImage(context, searchPerson.ProfilePath, vh.CastImage, Resource.Drawable.NoCast);
        }