mInflater = (LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);    
View view=mInflater.inflate(R.layout.managekeydlg, null);    
pwdtxt=(EditText)view.findViewById(R.id.pwdtxt);
在上面的代码中,managekeydlg中含有一个pwdtxt,我现在是想做一个弹出式对话框,里面就一个密码输入框,但是这样写之后运行一直报nullpointer的错误,我知道应该是findViewById的问题,但是不知道应该怎么改,求大侠指导啊。