社区
Android
帖子详情
求教,DialogInterface cannot be resolved to a type
wdtzon
2012-12-02 08:32:22
...全文
136
4
打赏
收藏
求教,DialogInterface cannot be resolved to a type
[图片]
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
顾小林
2013-04-29
打赏
举报
回复
会不会是View的那个button响应事件 试试看
nurseryrhyme
2013-04-26
打赏
举报
回复
添加一个import android.content.DialogInterface;的包
wdtzon
2012-12-02
打赏
举报
回复
........................
wdtzon
2012-12-02
打赏
举报
回复
顶。。。。。。。。。。。。。。
android: OnClickListener cannot be
resolved
to a
type
众所周知,我们在android开发中为Button实现触发事件有两种基本的实现。一种为接口匿名类实现,这种方法直接方便但是会造成代码的冗余;还有一种方法是直接类型与new一个接口对象,在里面实现方法。如下: import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import
R.layout.main cannot be
resolved
解决办法
今天敲的代码 package com.sharpandroid.activity; import android.R; import android.app.Activity; import android.app.Alert
Dialog
; import android.content.
Dialog
Interface
; import android.content.Intent; impo
关于android创建对话框报错The method setPositiveButton(int,
Dialog
Interface
.OnClickListener) in the
type
Alert
http://blog.csdn.net/xiaoyuan511/article/details/17114761 关于android创建对话框报错The method setPositiveButton(int,
Dialog
Interface
.OnClickListener) in the
type
Alert 原创 2013年12月04日 10:43:35 标签
The method setPositiveButton(int,
Dialog
Interface
.OnClickListener) in the
type
Alert
Dialog
.Builder i
The method setPositiveButton(int,
Dialog
Interface
.OnClickListener) in the
type
Alert
Dialog
.Builder is not applicable for the arguments (String, new View.OnClickListener(){}) Here is your
java
dialog
按钮英文,关于类型为Alert
Dialog
.Builder的java:setPositiveButton(int,
Dialog
Interface
.OnClickListener)...
ERROR: /home/gabr0/Escritorio/Andorid/packages/apps/OwlsNest/src/com/aosip/owlsnest/advanced/ScreenStateToggles.java:187.26: The method setPositiveButton(int,
Dialog
Interface
.OnClickListener) in the t...
Android
80,349
社区成员
91,287
社区内容
发帖
与我相关
我的任务
Android
移动平台 Android
复制链接
扫一扫
分享
社区描述
移动平台 Android
android
android-studio
androidx
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章