public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { NutritionGoalViewHolder nreviewholder = holder as NutritionGoalViewHolder; nreviewholder.NutrientName.Text = _nutritionGoal.Nutrients[position].Name; nreviewholder.NutrientAmount.Text = _nutritionGoal.Nutrients[position].Amount.ToString(); }
public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) { View NutritionGoalView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.nutrition_goal_card, parent, false); NutritionGoalViewHolder nrviewholder = new NutritionGoalViewHolder(NutritionGoalView); return(nrviewholder); }