AlertDialog.Builder警告对话框类

1)setpositiveButton 确定
Set a listener to be invoked when the positive button of the dialog is pressed.

2)setNeutralButton 中间
Set a listener to be invoked when the neutral button of the dialog is pressed.

3)setNegativeButton 取消

Set a listener to be invoked when the negative button of the dialog is pressed.

4)setItems列表框
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.

5)setSingleChoiceItems单项选择列表框
Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener.


更多相关文章

  1. 【Android】【应用信息】获取服务列表
  2. android 时间对话框
  3. Android水平列表循环插入数据
  4. Android实现Zaker的加载对话框
  5. Android自定义对话框(Dialog)位置,大小
  6. Android弹出对话框简单代码
  7. android getApplicationContext()与activity.this的区别
  8. android 图文列表的实现方法
  9. Android(安卓)ListView列表分组

随机推荐

  1. python打印系统所有tcp,udp监听端口及服
  2. python学习(13)————jieba进阶生成词云
  3. 用于搜索和替换大字符串的最快Python方法
  4. 基于scrapy框架的关于58同城招聘网站信息
  5. PyQt中的各种提示框
  6. Python3:抓取百度关键词所包含的网页
  7. 如何使用os.listdir()忽略隐藏文件?
  8. 弹性豆茎,awsebcli,和祝福1.9.5。
  9. 用python解析word文件(二):table
  10. python selenium-webdriver 定位frame中