先这样: btnPayMember = (Button) view.findViewById(R.id.id_pay_member); private void pay_member() { btnPayMember.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { //Toast.makeText(getActivity(),"11111", Toast.LENGTH_LONG).show(); onClickPayMember(v); } }); } 再这样 public void onClickPayMember(View v) { } 就可以了。