对确定按钮监听,再有就是赋值给Activity的成员变量就行了
java代码:
EditText editText = new EditText(this);
new AlertDialog.Builder(this)
.setTitle("请输入")
.setIcon(android.R.drawable.ic_dialog_info)
.setView(editText )
.setPositiveButton("确定", null)
.setNegativeButton("取消", null)
.show();