[quote=引用 1 楼 u014468929 的回复:] 是不是你xml使用了自定义的布局或空间。如果是自定义的需要加入 public MyTextView(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub this.context = context; } 这个方法。 如果不是这个问题,是不是你的程序里有提示让你new api的地方,解释的是这个方法在低版本里找不到,所以会报错,没看到你代码,具体情况也不知道
是不是你xml使用了自定义的布局或空间。如果是自定义的需要加入 public MyTextView(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub this.context = context; } 这个方法。 如果不是这个问题,是不是你的程序里有提示让你new api的地方,解释的是这个方法在低版本里找不到,所以会报错,没看到你代码,具体情况也不知道
80,350
社区成员
91,289
社区内容
加载中
试试用AI创作助手写篇文章吧