@Override
  public View getDropDownView(
      int position,
      View convertView,
      ViewGroup parent) { // This view starts when we click the spinner.
    View row = convertView;
    if (row == null) {
      LayoutInflater inflater = context.getLayoutInflater();
      row = inflater.inflate(R.layout.spinner_row_my_children, parent, false);
    }

    PatientChildData item = spinnerItems.get(position);

    if (item != null) { // Parse the data from each object and set it.
      TextView myChildName = (TextView) row.findViewById(R.id.spinnerTxtTitle);
      ImageView patientPhoto = (ImageView) row.findViewById(R.id.patientPhoto);

      if (myChildName != null) myChildName.setText(item.getFirtname() + " " + item.getLastname());

      byte[] childPhotoData = item.getPatientphoto();

      if (childPhotoData != null) {
        Log.d("ROBERT BTE", childPhotoData.length + "");
        Bitmap bMap = BitmapFactory.decodeByteArray(childPhotoData, 0, childPhotoData.length);
        patientPhoto.setBackground(Utils.resizedBitmapDisplayPatientQueue(context, bMap));
      }
    }

    return row;
  }
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
    PatientChildData current = spinnerItems.get(position);

    LayoutInflater inflater = context.getLayoutInflater();
    View row = inflater.inflate(R.layout.spinner_row_my_children_photo, parent, false);
    ImageView patientPhoto = (ImageView) row.findViewById(R.id.patientPhoto);

    byte[] childPhotoData = current.getPatientphoto();

    if (childPhotoData != null) {
      Bitmap bMap = BitmapFactory.decodeByteArray(childPhotoData, 0, childPhotoData.length);
      patientPhoto.setBackground(Utils.resizedBitmapDisplayPatientQueue(context, bMap));
    }

    return row;
  }