在android开发中怎么让对话框中自定义的按钮能关闭对话框

如题所述

LayoutInflater inflater = LayoutInflater.from(mContext); final View view = inflater.inflate(R.layout.myaccount, null); Button btnRegdit = (Button) view.findViewById(R.id.regdit_button); btnRegdit.setOnClickListener(new OnClickListener() { public void onClick(View v) { } });
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答