private void initView() {
    this.findViewById(R.id.backBtn).setOnClickListener(this);
    ((TextView) this.findViewById(R.id.titleTextView)).setText("设置备注");

    this.remarkEditText = (EditText) this.findViewById(R.id.remarkEditText);
    this.handleBtn = (Button) this.findViewById(R.id.handleBtn);
    this.handleBtn.setOnClickListener(this);

    this.commitBtn = (Button) this.findViewById(R.id.commitBtn);
    this.commitBtn.setOnClickListener(this);

    seekBar = (PaginationSeekBar) findViewById(R.id.starsSeekbar);
    seekBar.setMin(1);
    seekBar.setMax(1);
    seekBar.setPagecountPerOneboard(1, 9);
    seekBar.setHapticFeedbackEnabled(true);

    try {
      remarkEditText.setText(appDto.getCommunity());
      remarkEditText.setSelection(remarkEditText.getText().toString().trim().length());
    } catch (Exception e) {
    }

    this.handle = appDto.isHandle();
    this.handleBtn.setBackgroundResource(
        this.handle ? R.drawable.btn_toggle_on : R.drawable.btn_toggle_off);
    this.seekBar.setProgress(appDto.getStars());
  }
  public void setData(final ReserveListAppDto dto) {
    this.dto = dto;

    this.logoImageView.setImageUrl(
        Constants.HOST_IP + dto.getUserImg(), ImageCacheManager.getInstance().getImageLoader());
    this.usernameTextView.setText(dto.getUserName());
    this.remarkTextView.setText(
        "备注:" + (StringUtils.isBlank(dto.getRemark()) ? "无" : dto.getRemark()));
    this.handleTextView.setText(dto.isHandle() ? "已看房" : "未看房");
    this.starsTextView.setText("租房意向:" + dto.getStars());

    this.setRemarkTextView.setOnClickListener(
        new OnClickListener() {
          @Override
          public void onClick(View view) {
            Intent intent = new Intent(context, KeeperRemarkActivity.class);
            intent.putExtra("DTO", dto);
            context.startActivity(intent);
          }
        });

    this.dialTextView.setOnClickListener(
        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);
          }
        });
  }
  private void requestSetRemark() {
    HashMap<String, String> map = new HashMap<String, String>();
    map.put("id", appDto.getId() + "");
    map.put("remark", remarkEditText.getText().toString().trim());
    map.put("handle", String.valueOf(handle));
    map.put("stars", this.seekBar.getProgress() + "");

    JSONRequest request =
        new JSONRequest(
            this,
            RequestEnum.HOUSE_RESERVE_REMARK,
            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(KeeperRemarkActivity.this, "设置成功", Toast.LENGTH_SHORT).show();

                    KeeperRemarkActivity.this.finish();

                  } else {
                    Toast.makeText(KeeperRemarkActivity.this, dto.getMsg(), Toast.LENGTH_SHORT)
                        .show();
                  }

                } catch (Exception e) {
                  e.printStackTrace();
                }
              }
            });

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