关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert
2017-11-08 10:36
716 查看
http://blog.csdn.net/xiaoyuan511/article/details/17114761
原创 2013年12月04日
10:43:35
标签:
android /
Dialog /
报错
1284
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
It should be
关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert
原创 2013年12月04日10:43:35
标签:
android /
Dialog /
报错
1284
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()[/code]
It should be
.setNegativeButton("Don't Remind", new DialogInterface.OnClickListener()
只要这样写,就不报错了!本人水平有限,也不知道什么原因,希望对你能有帮助!
相关文章推荐
- 关于android创建对话框报错The method setPositiveButton(int, DialogInterface.OnClickListener) in the type Alert
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i
- 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 setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i
- The method setButton(int, CharSequence, Message) in the type AlertDialog is not applicable for the a
- 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 错误
- 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
- 报错 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
- The method setOnClickListener(View.OnClickListener) in the type View is not
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum