关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert
来源:互联网 发布:javascript常用对象 编辑:程序博客网 时间:2024/05/23 02:06
The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments (String, new View.OnClickListener(){})
Here is your solution, you did a silly mistake there buddy.
It should not be
.setNegativeButton("Don't Remind", new OnClickListener()
It should be
.setNegativeButton("Don't Remind", new DialogInterface.OnClickListener()
只要这样写,就不报错了!本人水平有限,也不知道什么原因,希望对你能有帮助!
- 关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert
- 关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i
- 报错 The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the ar
- 报错:The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the ar
- The method setOnClickListener(View.OnClickListener) in the type---错误
- android开发The method setOnClickListener(View.OnClickListener) in the type View is not错误
- android The method setOnClickListener(View.OnClickListener) in the type View is not applicable for
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- 单片机程序死机跑飞查错指南
- ubuntu 12.04 mariadb 服务操作
- hibernate如何自定义自增长的主键值?
- Mahout-DistanceMeasure (数据点间的距离计算方法)
- struts2实现上传下载(单文件上传与多文件上传的比较)
- 关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert
- Git GUI windows客户端保存用户名与密码的问题
- 分享超级表格用户在知乎上与我们的对话
- 【动态规划】locker
- 小波变换和motion信号处理(一)
- [CPP]cpp小笔记2 --- float 的值的精度最大为Decimal point 往左6-7位
- WFDB 软件包
- linux 触摸屏驱动分析
- 使用安装在linux端的loadgenerator,在controller加载并发人数受限的问题解决