private QueryItem createItem() {
   QueryItem item = new QueryItem(getActivity());
   MarginLayoutParams params =
       new MarginLayoutParams(Constant.WRAP_CONTENT, Constant.WRAP_CONTENT);
   params.topMargin = 20;
   item.setLayoutParams(params);
   return item;
 }
 private void changeAllGeology() {
   for (int i = 0; i < mContainer.getChildCount(); i++) {
     QueryItem item = (QueryItem) mContainer.getChildAt(i);
     System.out.println(item);
     if (item.geologyIndex != geologyIndex) {
       item.setSpinerValue(item.mSpinnerGeology, geologyIndex);
       item.geologyIndex = geologyIndex;
       item.initConditions(getActivity());
       item.initConditions(getActivity());
       item.initConditiontValue(getActivity());
     }
   }
 }
  private void destroyDialogAndCreateQueryUrl() {
    StringBuilder sb = new StringBuilder();
    String geologyObject = "";
    for (int i = 0; i < mContainer.getChildCount(); i++) {
      QueryItem item = (QueryItem) mContainer.getChildAt(i);
      String orAnd = item.getSpinnerValue(0);
      geologyObject = item.getSpinnerValue(1);
      String condition = item.getSpinnerValue(2);
      String conditionValue = item.getSpinnerValue(3);
      double max = item.getMaxValue();
      double min = item.getMinValue();

      if (conditionValue.equals("特大型")) {
        min = 1500;
      } else if (conditionValue.equals("超大型")) {
        max = 1500;
        min = 500;
      } else if (conditionValue.equals("大型")) {
        max = 500;
        min = 100;
      } else if (conditionValue.equals("中型")) {
        max = 100;
        min = 10;
      } else if (conditionValue.equals("小型")) {
        max = 10;
      } else if (conditionValue.equals("自定义")) {

      }

      String str = getURLPartByValues(orAnd, geologyObject, condition, conditionValue, max, min);
      if (str.endsWith("&")) {
        str = str.substring(0, str.length() - 1);
      }
      sb.append(str);
    }

    String key = sb.toString();
    if (key.startsWith("&")) {
      key = key.substring(1);
    }

    mylog.i(
        TAG, "destroyDialogAndCreateQueryUrl URL is " + key + "  geologyObject " + geologyObject);
    if (geologyObject.equals("盆地")) {
      executeNetworkForBasin(key);
    }
    if (geologyObject.equals("油气田")) {
      executeNetworkForOil(key);
    }
    if (geologyObject.equals("油气藏")) {
      executeNetworkForYouQi(key);
    }
  }