competerH_programing的专栏

这些都是我平时做项目遇到的问题以及解决方法,拿出来与大家分享共同提高...

The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i

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()



阅读更多
文章标签: string
个人分类: android
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭