How to dismis custom dialog from a custom button in dialog?
问题 Hi there, @Override protected Dialog onCreateDialog(int id) { AlertDialog.Builder builder = new AlertDialog.Builder(this); inviteView = getLayoutInflater().inflate(R.layout.invite_dialog, null); builder.setView(inviteView); sendSmsButton = (Button) inviteView.findViewById(R.id.sendSMSButton); sendEmailButton = (Button) inviteView.findViewById(R.id.sendEmailButton); builder.setTitle(R.string.invite_callrz_title); sendSmsButton.setOnClickListener(new OnClickListener() { @Override public void