Android 自定义布局对话框

 AlertDialog regAlertDialog= new AlertDialog.Builder(NewLoginActivity.this).create();
    regAlertDialog.setCanceledOnTouchOutside(false);
    regAlertDialog.show();
    regAlertDialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
    Window window = regAlertDialog.getWindow();
    window.setContentView(R.layout.dialog_register_teacher_new);
    final TextView textViewHint= (TextView) window.findViewById(R.id.textView_hint);
    TextView phone= (TextView) window.findViewById(R.id.show_phone_number);
    phone.setText(phoneNumber);

你可能感兴趣的:(Android,对话框,android)