android 中要显示对话框,要定义哪个类?
A: AlertDialog.Builder
B: AlertDialog
C: Button
D: Dialog
A: AlertDialog.Builder
B: AlertDialog
C: Button
D: Dialog
A
举一反三
- 以下哪个类对应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();
内容
- 0
下面关于对话框说法错误的是______。 A: AlertDialog是提示对话框类。 B: AlertDialog.Builder用于创建提示对话框,并可以对提示对话框的标题、按钮及事件进行设置。 C: 调用Builder的show()方法可以显示对话框。 D: 调用Builder的Create()方法可以创建对话框。
- 1
15. 在Android 中, AlertDialog 类可以实现多种对话框,包括(
- 2
AlertDialog对话框调用AlertDialog对象的___方法显示该对话框。
- 3
中国大学MOOC: android 中要显示对话框,要定义哪个类?
- 4
下面关于AlertDialog对话框的描述,正确的是()。 A: AlertDialog对话框用于提示一些重要信息或者显示一些需要用户额外交互的内容 B: 可以调用AlertDialog.Builder的create()方法创建AlertDialog对象 C: AlterDialog一般包含标题、内容和按钮三个区域 D: AlertDialog对话框的内容可以为简单文本、单选列表、多选列表