public void addAvailableAddresses() {

    for (int i = 0; i < Constants.addressData.size(); i++) {

      rowView = layoutInflater.inflate(R.layout.include_available_address, null);
      LinearLayout.LayoutParams params =
          (LinearLayout.LayoutParams)
              new LinearLayout.LayoutParams(
                  LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
      params.setMargins(0, 0, 0, 5);
      rowView.setLayoutParams(params);

      address = (CustomTextView) rowView.findViewById(R.id.address_text_included);
      address.setTag("address_" + i);
      address.setVisibility(View.VISIBLE);
      Log.d(
          Constants.LOG_TAG,
          " Setting the adress " + Constants.addressData.get(i).getFullAddress());
      address.setText(Constants.addressData.get(i).getFullAddress());
      address.setOnClickListener(inflatedViewListener);

      mobileNumber = (CustomTextView) rowView.findViewById(R.id.mobile_number_text_included);
      mobileNumber.setTag("number_" + i);
      mobileNumber.setVisibility(View.VISIBLE);
      Log.d(
          Constants.LOG_TAG,
          " Setting the mobile number " + Constants.addressData.get(i).getMobileNumber());
      mobileNumber.setText(Constants.addressData.get(i).getMobileNumber());
      mobileNumber.setOnClickListener(inflatedViewListener);

      selectAddressChild.addView(rowView);
    }
  }
  public void setZipcodeAdapter() {

    Log.d(Constants.LOG_TAG, "Setting zip code adapter " + Constants.zipcodes.size());

    zipcodeStaticText.setVisibility(View.GONE);
    zipcode.setVisibility(View.VISIBLE);
    zipcode.setAdapter(
        new ArrayAdapter<String>(
            getActivity().getApplicationContext(),
            R.layout.row_spinner_layout,
            Constants.zipcodes));
    zipcode.setOnItemSelectedListener(
        new AdapterView.OnItemSelectedListener() {
          @Override
          public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {

            String zipcodeValueFromSpinner = zipcode.getSelectedItem().toString();
            String id = Constants.zipcodesMap.get(zipcodeValueFromSpinner);
            populateAreas(id);
          }

          @Override
          public void onNothingSelected(AdapterView<?> adapterView) {}
        });
  }
  public void populateCity() {

    cityStaticText.setVisibility(View.GONE);
    city.setVisibility(View.VISIBLE);
    city.setAdapter(
        new ArrayAdapter<String>(
            getActivity().getApplicationContext(), R.layout.row_spinner_layout, Constants.cities));
    city.setOnItemSelectedListener(
        new AdapterView.OnItemSelectedListener() {
          @Override
          public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {

            String cityValueFromSpinner = city.getSelectedItem().toString();
            String id = Constants.citiesMap.get(cityValueFromSpinner);
            populateZipcodes(id);
          }

          @Override
          public void onNothingSelected(AdapterView<?> adapterView) {}
        });
  }