Пример #1
0
        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);
        }
Пример #2
0
        protected override GeneralViewHolder populateHolder(GeneralViewHolder _holder)
        {
            ItemDataHolder          item   = (ItemDataHolder)items[itemPosition];
            NutritionItemViewHolder holder = (NutritionItemViewHolder)_holder;

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

            return(holder);
        }