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


参考资料:

http://blog.csdn.net/competerh_programing/article/details/7377950

在创建Dialog的时候,出现:

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

的错误提示。解决方法:

将代码:

bulider.setPositiveButton("确定", new OnClickListener() {

换成:

bulider.setPositiveButton("确定", new DialogInterface.OnClickListener() {

即可解决问题

同样,.setNegativeButton()也如此处理即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM