android 中要显示对话框,要定义哪个类?
A: AlertDialog.Builder
B: AlertDialog
C: Button
D: Dialog
A: AlertDialog.Builder
B: AlertDialog
C: Button
D: Dialog
举一反三
- 以下哪个类对应Android中的提示对话框?() A: AlertDialog B: Dialog C: ShowDialog D: Alert
- 以下哪个类对应Android中的提示对话框?(<br/>) A: AlertDialog B: Dialog C: ShowDialog D: Alert
- 简述使用AlertDialog创建对话框步骤。 A: 创建AlertDialog.Builder对象 B: 调用定义并实例化创建器 C: 调用AlertDialog.Builder的方法为对话框设置图标、标题、内容等 D: 调用AlertDialog.Builder的creat()方法创建AlertDialog对话框 E: 调用AlertDialog的show()方法显示对话框
- 关于AlertDialog描述错误的是() A: show()方法只显示对话框 B: AlertDialog.Builder的create()和show()方法都返回AlertDialog对象 C: AlertDialog不能直接用new关键字构建对象,而必须使用其内部类Builder D: AlertDialog对象直接调用create()方法创建并显示对话框
- 以下属于 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();