AlertDialog
来源:互联网 发布:淘宝怎么认证实名认证 编辑:程序博客网 时间:2024/06/11 23:49
AlertDialog的构造方法:
Protected constructors
AlertDialog(Context context)
Creates an alert dialog that uses the default alert dialog theme.
AlertDialog(Context context, boolean cancelable, DialogInterface.OnCancelListener cancelListener)
Creates an alert dialog that uses the default alert dialog theme and a custom cancel listener.
AlertDialog(Context context, int themeResId)
Creates an alert dialog that uses an explicit theme resource.
保护属性,不能通过new AlertDialog()直接实例化AlertDialog.通过AlertDialog.Builder dialog=new AlertDialog.Builder(this);来构造AlertDialog实例.
其中setCancelable()是设置提示对话框(AlertDialog)能否被Back键取消 默认值为true.
0 0
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- 论持久战之Java性能监控工具(jmap)
- springboot+mybatis入门
- 十大排序算法 JAVA代码
- 分治算法(三)215. Kth Largest Element in an Array【middle】03-04
- 团结就是力量
- AlertDialog
- kmp
- Arrays.asList()
- Mvc动态注册HttpModule详解
- PHPStorm Xdebug Remote 调试环境搭建(不依赖本地环境)
- rails routes路由笔记
- centos6.5安装配置MongoDB3.4(tgz压缩包安装)
- Hive,Hbase,HDFS等之间的关系
- ServletConfig和ServletContext的意思