@Override
 public void appendNodeList(List<OrderNode> orderNodes, boolean isEnd) {
   adapter.appendList(orderNodes, true);
   for (int i = 0; i < adapter.getGroupCount(); i++) {
     expListView.expandGroup(i);
   }
 }
  @Nullable
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View baseView = inflater.inflate(R.layout.app_explistview, container, false);
    ButterKnife.bind(this, baseView);

    mPDialog = new MProgressDialog(this.getActivity());
    adapter = new OWaitPayAdapter(this.getActivity(), OrderState.DELIVERED);
    expListView.setHeaderView(inflater.inflate(R.layout.o_item_nav_layout, expListView, false));
    expListView.setAdapter(adapter);

    orderController = new OrderOpreateController(this);
    controller = new OrderListController(this);
    if (NetUtils.isNetworkAvailable(this.getActivity())) {
      controller.excute(OrderState.DELIVERED + "");
    } else {
      showToast(getActivity(), R.string.netNotAvailable);
    }

    adapter.setOnExpGroupClickListener(
        new OWaitPayAdapter.OnExpGroupClickListener() {
          @Override
          public void onGroupClick(OrderNode pInfo, boolean isOpreate) {
            // TODO Auto-generated method stub
            if (pInfo != null)
              if (isOpreate) {
                if (NetUtils.isNetworkAvailable(getActivity())) {
                  payType = pInfo.getPayType();
                  mPDialog.show();
                  mPDialog.setCancelable(false);
                  orderController.excutePayOrder(createOrderParam(pInfo.getOrderId()), false);
                } else {
                  showToast(getActivity(), R.string.netNotAvailable);
                }
              } else {
                OrderDetialActivity.launcher(
                    OrderNoDeliveryFragment.this,
                    pInfo.getOrderId(),
                    pInfo.getPayType(),
                    OrderState.WAIT_PAY,
                    AliPayUtils.ORDER_PAY_REQUEST_CODE);
              }
          }
        });

    return baseView;
  }
 @Override
 public boolean isListEmpty() {
   return adapter.getList().isEmpty();
 }