关闭

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

标签: string
14236人阅读 评论(23) 收藏 举报
分类:

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



5
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:492820次
    • 积分:5221
    • 等级:
    • 排名:第5422名
    • 原创:32篇
    • 转载:127篇
    • 译文:1篇
    • 评论:80条