@Override public void onClick(View v) { switch (v.getId()) { case R.id.btn_sub: String extend_msg = et_extend_msg.getText().toString(); String refund_amount = et_pay_price.getText().toString(); if (Double.valueOf(refund_amount) > Double.valueOf(goods_pay_price)) { Toast.makeText(E3_Activity_Returns.this, "金额输入错误", Toast.LENGTH_LONG).show(); } else { loadingPDialog.show(); HttpUtils.refund( res, order_id, rec_id, refund_type, refund_amount, goods_num, extend_msg); } break; case R.id.ll_check_1: check_1.setChecked(true); check_2.setChecked(false); refund_type = "1"; break; case R.id.ll_check_2: check_2.setChecked(true); check_1.setChecked(false); refund_type = "2"; break; case R.id.iv_back: this.finish(); break; default: break; } }