以下属于 AlertDialog对话框显示的方法是:( )
A: AlertDialog x=newAlertDialog.Builder(this).create(); x.show();
B: AlertDialog x=newAlertDialog.Builder(this); x.create().show();
C: Builder x=newAlertDialog.Builder(this).create().; x.show();
D: Builder x=newAlertDialog.Builder(this); x.show();
A: AlertDialog x=newAlertDialog.Builder(this).create(); x.show();
B: AlertDialog x=newAlertDialog.Builder(this); x.create().show();
C: Builder x=newAlertDialog.Builder(this).create().; x.show();
D: Builder x=newAlertDialog.Builder(this); x.show();
举一反三
- 关于AlertDialog描述错误的是() A: show()方法只显示对话框 B: AlertDialog.Builder的create()和show()方法都返回AlertDialog对象 C: AlertDialog不能直接用new关键字构建对象,而必须使用其内部类Builder D: AlertDialog对象直接调用create()方法创建并显示对话框
- 下面关于对话框说法错误的是______。 A: AlertDialog是提示对话框类。 B: AlertDialog.Builder用于创建提示对话框,并可以对提示对话框的标题、按钮及事件进行设置。 C: 调用Builder的show()方法可以显示对话框。 D: 调用Builder的Create()方法可以创建对话框。
- 创建对话框AlertDialog的方法 A: AlertDialogdlg=newAlertDialog(); B: AlertDialog.Builder b=new AlertDialog.Builder()AlertDialogdlg=b.create() C: AlertDialogdlg=create(); D: AlertDialogdlg=AlertDialog.create();
- 在AlertDialog构建完成之后,需要调用一下哪个方法显示对话框? A: show() B: create() C: hide() D: onShow()
- 对话框的创建采用Builder模式。