public void bt_2(View v) { final View view=View.inflate(this, R.layout.shurudianhuahaoma, null); et_1=(EditText)view.findViewById(R.id.et_1); new AlertDialog.Builder(this) .setTitle("请输入电话号码") .setView(view) .show(); }
et_1=(EditText)view.findViewById(R.id.et_1);要写在弹出对话框的地方
时间: 2024-09-30 18:46:43