android The method setOnClickListener(View.OnClickListener)解决办法
来源:互联网 发布:小熊棋牌三网通源码 编辑:程序博客网 时间:2024/06/05 23:44
The method setOnClickListener(View.OnClickListener) in the type View is not
开始学习 android 了 学习的是 马老师的 android视频教程(android视频教学) 学到第一季 第六集时 在写监听器时总是不过,极端及郁闷。
遇到的问题有一两个 第一 没看清楚马老师 那个快捷键 (其实就是 alt+/)
第二 用 alt+/ 快捷键添加之后是
@Override public void onClick(DialogInterface arg0, int arg1) { // TODO Auto-generated method stub
而不是视频中的 @Override public void onClick(View v) { // TODO Auto-generated method stub
第三 不管怎么修改都无法通过。
最后我找到了解决办法,正在这里跟大家分享一下
有两点需要修改
1.把 @Override public void onClick(DialogInterface arg0, int arg1) { // TODO Auto-generated method stub 改成
@Override public void onClick(View v) { // TODO Auto-generated method stub
2. 把 import android.content.DialogInterface.OnClickListener; 改成 import android.view.View.OnClickListener;
(就是导入的文件)
开始学习 android 了 学习的是 马老师的 android视频教程(android视频教学) 学到第一季 第六集时 在写监听器时总是不过,极端及郁闷。
遇到的问题有一两个 第一 没看清楚马老师 那个快捷键 (其实就是 alt+/)
第二 用 alt+/ 快捷键添加之后是
@Override public void onClick(DialogInterface arg0, int arg1) { // TODO Auto-generated method stub
而不是视频中的 @Override public void onClick(View v) { // TODO Auto-generated method stub
第三 不管怎么修改都无法通过。
最后我找到了解决办法,正在这里跟大家分享一下
有两点需要修改
1.把 @Override public void onClick(DialogInterface arg0, int arg1) { // TODO Auto-generated method stub 改成
@Override public void onClick(View v) { // TODO Auto-generated method stub
2. 把 import android.content.DialogInterface.OnClickListener; 改成 import android.view.View.OnClickListener;
(就是导入的文件)
0 0
- android The method setOnClickListener(View.OnClickListener)解决办法
- The method setOnClickListener(View.OnClickListener)解决办法
- The method setOnClickListener(View.OnClickListener)解决办法
- android开发The method setOnClickListener(View.OnClickListener) in the type View is not错误
- android The method setOnClickListener(View.OnClickListener) in the type View is not applicable for
- The method setOnClickListener(View.OnClickListener) in the type---错误
- android setOnClickListener(View.OnClickListener) 问题
- 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 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 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 applicable for the argu
- 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
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable
- 解决-The method setOnClickListener(View.OnClickListener) in the type View is not 错误
- GDB使用小结
- 如何让所有的后台程序(daemons)都可以产生core dumps文件?
- linux修改系统时间
- 2015届校园招聘机考(1)_2175_字母大小写判断
- 数据类型和Json格式
- android The method setOnClickListener(View.OnClickListener)解决办法
- 25个超棒的jQuery日历和日期选取插件
- 文档在线预览
- Android 百度map 初次开发心得
- Linux重要表格整理
- Edit Distance
- 深入了解SQL注入绕过waf和过滤机制
- 2015届校园招聘机考(1)_2178_垃圾短信识别
- WebView.destroy()