AlertDialog dialog = new EditText et = (EditText)dialog.findViewById(R.id.);String input = et.getText().toString();//这就是你需要的内容了纯手打,望采纳