private AlertDialog mDialog = null; private void selCDType() { mDialog = new AlertDialog.Builder(mActivity).create(); mDialog.show(); mDialog.getWindow().setContentView(R.layout.dialog_del_user); mEdtCode = (EditText) mDialog.getWindow().findViewById(R.id.edt_code); // InputMethodManager imm = (InputMethodManager) mActivity // .getSystemService(Context.INPUT_METHOD_SERVICE); // imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS); // mEdtCode.setFocusableInTouchMode(true); // mEdtCode.requestFocus(); mDialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent); Button btn_ok = (Button) mDialog.getWindow().findViewById(R.id.btn_ok);
AlertDialog自定义布局
最新推荐文章于 2024-05-14 01:19:19 发布