@Override
  public View getView(int position, View convertView, ViewGroup parent) {

    if (inflater == null)
      inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    if (convertView == null) convertView = inflater.inflate(R.layout.itinerary_row, null);

    TextView date = (TextView) convertView.findViewById(R.id.textView_row_date);
    TextView client = (TextView) convertView.findViewById(R.id.textView_row_client);
    TextView vendor = (TextView) convertView.findViewById(R.id.textView_row_vendor);
    TextView material = (TextView) convertView.findViewById(R.id.textView_row_material);
    ImageView status = (ImageView) convertView.findViewById(R.id.imageView_visitStatus);

    // getting Itinerary data for the row
    Itinerary m = itineraryItems.get(position);

    // date
    date.setText(m.getDate());

    // client
    client.setText(m.getClient());

    // vendor
    vendor.setText(m.getVendor());

    // material
    material.setText(m.getMaterial());
    // status
    if (m.isStatus() == 0) {
      status.setImageResource(R.drawable.pendingstatus512x512);
    }
    // TODO replace images with variable size images
    else status.setImageResource(R.drawable.visitok512x512);

    return convertView;
  }