android之Button
16lz
2021-12-20
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.
更多相关文章
- 【Android】【应用信息】获取服务列表
- android 时间对话框
- Android水平列表循环插入数据
- Android实现Zaker的加载对话框
- Android自定义对话框(Dialog)位置,大小
- Android弹出对话框简单代码
- android getApplicationContext()与activity.this的区别
- android 图文列表的实现方法
- Android(安卓)ListView列表分组