Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android
2014-02-26 09:43
507 查看
自定义view出现inflate错误
public class MyCanvasView extends View {
public MyCanvasView(Context context,AttributeSet attrs) {
super(context,attrs);
// TODO Auto-generated constructor stub
}
}
public class MyCanvasView extends View {
public MyCanvasView(Context context,AttributeSet attrs) {
super(context,attrs);
// TODO Auto-generated constructor stub
}
}
相关文章推荐
- Android 字符串文件的用处
- Android自动化测试工具调研
- 成为android开发高手要掌握的技能
- android中的文件存储
- 【android4.3】记一次完整的android源码截屏事件的捕获(不同于网上的老版本)
- Android瀑布流照片墙实现,体验不规则排列的美感
- Android中可以暂停和恢复的线程
- JNI 遇到的问题
- 虚拟化技术加速Android模拟器尝试
- android实现共享数据
- 杭州_大雲架構師_培訓課程
- android如何使得电阻屏在第一次开机时自动叫起屏幕校准程序
- android资料下载地址汇总
- 【Android】Android性能测试之MAT的使用
- Android Activity task 相关属性
- Android学习总结之代码的基本特征
- Android Memory/Resource Leak总结
- Android学习小Demo(10)ToDoList的加强版
- Robolectric进行Android单元测试
- Android 读取 AndroidManifest中的数据