protected override GeneralViewHolder setupView() { NutritionItemViewHolder holder = new NutritionItemViewHolder(); holder.Name = convertView.FindViewById <MainTextView>(Resource.Id.NutritionItemName); holder.Value = convertView.FindViewById <MainTextView>(Resource.Id.NutritionItemValue); return(holder); }
protected override GeneralViewHolder populateHolder(GeneralViewHolder _holder) { ItemDataHolder item = (ItemDataHolder)items[itemPosition]; NutritionItemViewHolder holder = (NutritionItemViewHolder)_holder; if (item != null) { holder.ApplyData(item); } return(holder); }