private void initMenu() {
    final PromotedActionsLibrary promotedActionsLibrary = new PromotedActionsLibrary();

    promotedActionsLibrary.setup(context.getApplicationContext(), this.operatorLayout);
    promotedActionsLibrary.setIsPortrait(false);

    promotedActionsLibrary.addItem(
        getResources().getDrawable(R.drawable.keeper_img_18),
        new OnClickListener() {
          @Override
          public void onClick(View view) {
            Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + dto.getTelphone()));
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(intent);
          }
        });
    promotedActionsLibrary.addItem(
        getResources().getDrawable(R.drawable.keeper_img_19),
        new OnClickListener() {
          @Override
          public void onClick(View view) {
            Intent intent = new Intent(context, KeeperRemarkActivity.class);
            intent.putExtra("DTO", dto);
            context.startActivity(intent);
          }
        });
    promotedActionsLibrary.addItem(
        getResources().getDrawable(R.drawable.keeper_img_17),
        new OnClickListener() {

          @Override
          public void onClick(View view) {
            new SweetAlertDialog(context, SweetAlertDialog.WARNING_TYPE)
                .setTitleText("\n您确定要删除吗?")
                .setContentText("")
                .setCancelText("取消")
                .setConfirmText("确定")
                .showCancelButton(true)
                .setCancelClickListener(
                    new SweetAlertDialog.OnSweetClickListener() {
                      @Override
                      public void onClick(SweetAlertDialog sDialog) {
                        sDialog.cancel();
                      }
                    })
                .setConfirmClickListener(
                    new SweetAlertDialog.OnSweetClickListener() {
                      @Override
                      public void onClick(SweetAlertDialog sDialog) {
                        sDialog.cancel();

                        requestDelete();
                      }
                    })
                .show();
          }
        });

    promotedActionsLibrary.addMainItem(getResources().getDrawable(R.drawable.keeper_img_16));
  }
  private void requestDelete() {
    HashMap<String, String> map = new HashMap<String, String>();
    map.put("id", this.dto.getId() + "");

    JSONRequest request =
        new JSONRequest(
            context,
            RequestEnum.HOUSE_RESERVE_DELETE,
            map,
            new Response.Listener<String>() {

              @Override
              public void onResponse(String jsonObject) {
                try {
                  ObjectMapper objectMapper = new ObjectMapper();
                  objectMapper.configure(
                      DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
                  JavaType type =
                      objectMapper
                          .getTypeFactory()
                          .constructParametricType(AppMessageDto.class, String.class);
                  AppMessageDto<String> dto = objectMapper.readValue(jsonObject, type);
                  if (dto.getStatus() == AppResponseStatus.SUCCESS) {
                    Toast.makeText(context, "删除成功", Toast.LENGTH_SHORT).show();

                    context.requestReserveList();

                  } else {
                    Toast.makeText(context, dto.getMsg(), Toast.LENGTH_SHORT).show();
                  }
                } catch (Exception e) {
                  e.printStackTrace();
                }
              }
            });

    context.addToRequestQueue(request, "正在提交数据...");
  }