Esempio n. 1
0
        protected override GeneralViewHolder setupView()
        {
            RecentSearchViewHolder holder = new RecentSearchViewHolder();

            holder.Name = convertView.FindViewById <MainTextView>(Resource.Id.RecentSearchName);
            return(holder);
        }
        public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView             = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.busqueda_row, parent, false);
            RecentSearchViewHolder vh = new RecentSearchViewHolder(itemView, OnClick);

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

            vh.nameProduct.Text = Productos[position];
            vh.imageProduct.SetImageResource(Resource.Drawable.Isotipo_Bancos);
        }
Esempio n. 4
0
        protected override GeneralViewHolder populateHolder(GeneralViewHolder _holder)
        {
            SimpleDBItem           item   = (SimpleDBItem)items[itemPosition];
            RecentSearchViewHolder holder = (RecentSearchViewHolder)_holder;

            if (item != null)
            {
                holder.ApplyData(item);
            }

            return(holder);
        }